about summary refs log tree commit diff
path: root/tests/ui/attributes/proc_macro_in_macro.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-05-09 20:37:37 +0000
committerbors <bors@rust-lang.org>2025-05-09 20:37:37 +0000
commit17067e9ac6d7ecb70e50f92c1944e545188d2359 (patch)
tree10cdfd82bfa6bb95d7e99b7ab53d8121fc7a8913 /tests/ui/attributes/proc_macro_in_macro.rs
parentaf91af44eb85ceac634afa72cc73be4af358b350 (diff)
parent908c30b3e1b758d46501de460163e9761c65534f (diff)
downloadrust-17067e9ac6d7ecb70e50f92c1944e545188d2359.tar.gz
rust-17067e9ac6d7ecb70e50f92c1944e545188d2359.zip
Auto merge of #140859 - pietroalbini:pa-stable, r=pietroalbini 1.87.0
[stable] Prepare the 1.87.0 release

Preparing the stable artifacts as described in the release process.

This PR also includes the following last minute backports:

* https://github.com/rust-lang/rust/pull/140810
* https://github.com/rust-lang/rust/pull/140601
* https://github.com/rust-lang/rust/pull/140684

r? `@ghost`
Diffstat (limited to 'tests/ui/attributes/proc_macro_in_macro.rs')
-rw-r--r--tests/ui/attributes/proc_macro_in_macro.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/attributes/proc_macro_in_macro.rs b/tests/ui/attributes/proc_macro_in_macro.rs
new file mode 100644
index 00000000000..ebe67d2a321
--- /dev/null
+++ b/tests/ui/attributes/proc_macro_in_macro.rs
@@ -0,0 +1,16 @@
+// Regression test for <https://github.com/rust-lang/rust/issues/137687#issuecomment-2816312274>.
+//@ proc-macro: derive_macro_with_helper.rs
+//@ edition: 2018
+//@ check-pass
+
+macro_rules! call_macro {
+    ($text:expr) => {
+        #[derive(derive_macro_with_helper::Derive)]
+        #[arg($text)]
+        pub struct Foo;
+    };
+}
+
+call_macro!(1 + 1);
+
+fn main() {}