We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e22dab3 commit 1ad705fCopy full SHA for 1ad705f
tests/ui/proc-macro/auxiliary/extra-empty-derive.rs
@@ -0,0 +1,7 @@
1
+extern crate proc_macro;
2
+use proc_macro::{TokenStream, TokenTree};
3
+
4
+#[proc_macro_derive(Empty2, attributes(empty_helper))]
5
+pub fn empty_derive2(_: TokenStream) -> TokenStream {
6
+ TokenStream::new()
7
+}
tests/ui/proc-macro/helper-attr-compat-collision.rs
@@ -0,0 +1,15 @@
+//@ proc-macro: test-macros.rs
+//@ proc-macro: extra-empty-derive.rs
+//@ build-pass
+#[macro_use(Empty)]
+extern crate test_macros;
+#[macro_use(Empty2)]
8
+extern crate extra_empty_derive;
9
10
+#[derive(Empty)]
11
+#[empty_helper]
12
+#[derive(Empty2)]
13
+struct S;
14
15
+fn main() {}
0 commit comments