@@ -8,40 +8,22 @@ LL | #![empty_attr]
88 = help: add `#![feature(custom_inner_attributes)]` to the crate attributes to enable
99
1010error[E0658]: non-builtin inner attributes are unstable
11- --> $DIR/proc-macro-gates.rs:17 :5
11+ --> $DIR/proc-macro-gates.rs:14 :5
1212 |
1313LL | #![empty_attr]
1414 | ^^^^^^^^^^^^^^
1515 |
1616 = note: for more information, see https://github.com/rust-lang/rust/issues/54726
1717 = help: add `#![feature(custom_inner_attributes)]` to the crate attributes to enable
1818
19- error[E0658]: custom attributes cannot be applied to modules
20- --> $DIR/proc-macro-gates.rs:13:1
21- |
22- LL | #[empty_attr]
23- | ^^^^^^^^^^^^^
24- |
25- = note: for more information, see https://github.com/rust-lang/rust/issues/54727
26- = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
27-
28- error[E0658]: custom attributes cannot be applied to modules
29- --> $DIR/proc-macro-gates.rs:17:5
30- |
31- LL | #![empty_attr]
32- | ^^^^^^^^^^^^^^
33- |
34- = note: for more information, see https://github.com/rust-lang/rust/issues/54727
35- = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
36-
3719error: key-value macro attributes are not supported
38- --> $DIR/proc-macro-gates.rs:21 :1
20+ --> $DIR/proc-macro-gates.rs:17 :1
3921 |
4022LL | #[empty_attr = "y"]
4123 | ^^^^^^^^^^^^^^^^^^^
4224
4325error[E0658]: custom attributes cannot be applied to statements
44- --> $DIR/proc-macro-gates.rs:30 :5
26+ --> $DIR/proc-macro-gates.rs:26 :5
4527 |
4628LL | #[empty_attr]
4729 | ^^^^^^^^^^^^^
@@ -50,7 +32,7 @@ LL | #[empty_attr]
5032 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
5133
5234error[E0658]: custom attributes cannot be applied to statements
53- --> $DIR/proc-macro-gates.rs:34 :5
35+ --> $DIR/proc-macro-gates.rs:30 :5
5436 |
5537LL | #[empty_attr]
5638 | ^^^^^^^^^^^^^
@@ -59,7 +41,7 @@ LL | #[empty_attr]
5941 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
6042
6143error[E0658]: custom attributes cannot be applied to statements
62- --> $DIR/proc-macro-gates.rs:38 :5
44+ --> $DIR/proc-macro-gates.rs:34 :5
6345 |
6446LL | #[empty_attr]
6547 | ^^^^^^^^^^^^^
@@ -68,7 +50,7 @@ LL | #[empty_attr]
6850 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
6951
7052error[E0658]: custom attributes cannot be applied to expressions
71- --> $DIR/proc-macro-gates.rs:42 :14
53+ --> $DIR/proc-macro-gates.rs:38 :14
7254 |
7355LL | let _x = #[identity_attr] 2;
7456 | ^^^^^^^^^^^^^^^^
@@ -77,7 +59,7 @@ LL | let _x = #[identity_attr] 2;
7759 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
7860
7961error[E0658]: custom attributes cannot be applied to expressions
80- --> $DIR/proc-macro-gates.rs:45 :15
62+ --> $DIR/proc-macro-gates.rs:41 :15
8163 |
8264LL | let _x = [#[identity_attr] 2];
8365 | ^^^^^^^^^^^^^^^^
@@ -86,7 +68,7 @@ LL | let _x = [#[identity_attr] 2];
8668 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
8769
8870error[E0658]: custom attributes cannot be applied to expressions
89- --> $DIR/proc-macro-gates.rs:48 :14
71+ --> $DIR/proc-macro-gates.rs:44 :14
9072 |
9173LL | let _x = #[identity_attr] println!();
9274 | ^^^^^^^^^^^^^^^^
@@ -95,7 +77,7 @@ LL | let _x = #[identity_attr] println!();
9577 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
9678
9779error[E0658]: procedural macros cannot be expanded to patterns
98- --> $DIR/proc-macro-gates.rs:53 :12
80+ --> $DIR/proc-macro-gates.rs:49 :12
9981 |
10082LL | if let identity!(Some(_x)) = Some(3) {}
10183 | ^^^^^^^^^^^^^^^^^^^
@@ -104,7 +86,7 @@ LL | if let identity!(Some(_x)) = Some(3) {}
10486 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
10587
10688error[E0658]: procedural macros cannot be expanded to statements
107- --> $DIR/proc-macro-gates.rs:56 :5
89+ --> $DIR/proc-macro-gates.rs:52 :5
10890 |
10991LL | empty!(struct S;);
11092 | ^^^^^^^^^^^^^^^^^^
@@ -113,7 +95,7 @@ LL | empty!(struct S;);
11395 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
11496
11597error[E0658]: procedural macros cannot be expanded to statements
116- --> $DIR/proc-macro-gates.rs:57 :5
98+ --> $DIR/proc-macro-gates.rs:53 :5
11799 |
118100LL | empty!(let _x = 3;);
119101 | ^^^^^^^^^^^^^^^^^^^^
@@ -122,7 +104,7 @@ LL | empty!(let _x = 3;);
122104 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
123105
124106error[E0658]: procedural macros cannot be expanded to expressions
125- --> $DIR/proc-macro-gates.rs:59 :14
107+ --> $DIR/proc-macro-gates.rs:55 :14
126108 |
127109LL | let _x = identity!(3);
128110 | ^^^^^^^^^^^^
@@ -131,14 +113,14 @@ LL | let _x = identity!(3);
131113 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
132114
133115error[E0658]: procedural macros cannot be expanded to expressions
134- --> $DIR/proc-macro-gates.rs:60 :15
116+ --> $DIR/proc-macro-gates.rs:56 :15
135117 |
136118LL | let _x = [empty!(3)];
137119 | ^^^^^^^^^
138120 |
139121 = note: for more information, see https://github.com/rust-lang/rust/issues/54727
140122 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
141123
142- error: aborting due to 16 previous errors
124+ error: aborting due to 14 previous errors
143125
144126For more information about this error, try `rustc --explain E0658`.
0 commit comments