@@ -8,40 +8,22 @@ LL | #![empty_attr]
8
8
= help: add `#![feature(custom_inner_attributes)]` to the crate attributes to enable
9
9
10
10
error[E0658]: non-builtin inner attributes are unstable
11
- --> $DIR/proc-macro-gates.rs:17 :5
11
+ --> $DIR/proc-macro-gates.rs:14 :5
12
12
|
13
13
LL | #![empty_attr]
14
14
| ^^^^^^^^^^^^^^
15
15
|
16
16
= note: for more information, see https://github.com/rust-lang/rust/issues/54726
17
17
= help: add `#![feature(custom_inner_attributes)]` to the crate attributes to enable
18
18
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
-
37
19
error: key-value macro attributes are not supported
38
- --> $DIR/proc-macro-gates.rs:21 :1
20
+ --> $DIR/proc-macro-gates.rs:17 :1
39
21
|
40
22
LL | #[empty_attr = "y"]
41
23
| ^^^^^^^^^^^^^^^^^^^
42
24
43
25
error[E0658]: custom attributes cannot be applied to statements
44
- --> $DIR/proc-macro-gates.rs:30 :5
26
+ --> $DIR/proc-macro-gates.rs:26 :5
45
27
|
46
28
LL | #[empty_attr]
47
29
| ^^^^^^^^^^^^^
@@ -50,7 +32,7 @@ LL | #[empty_attr]
50
32
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
51
33
52
34
error[E0658]: custom attributes cannot be applied to statements
53
- --> $DIR/proc-macro-gates.rs:34 :5
35
+ --> $DIR/proc-macro-gates.rs:30 :5
54
36
|
55
37
LL | #[empty_attr]
56
38
| ^^^^^^^^^^^^^
@@ -59,7 +41,7 @@ LL | #[empty_attr]
59
41
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
60
42
61
43
error[E0658]: custom attributes cannot be applied to statements
62
- --> $DIR/proc-macro-gates.rs:38 :5
44
+ --> $DIR/proc-macro-gates.rs:34 :5
63
45
|
64
46
LL | #[empty_attr]
65
47
| ^^^^^^^^^^^^^
@@ -68,7 +50,7 @@ LL | #[empty_attr]
68
50
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
69
51
70
52
error[E0658]: custom attributes cannot be applied to expressions
71
- --> $DIR/proc-macro-gates.rs:42 :14
53
+ --> $DIR/proc-macro-gates.rs:38 :14
72
54
|
73
55
LL | let _x = #[identity_attr] 2;
74
56
| ^^^^^^^^^^^^^^^^
@@ -77,7 +59,7 @@ LL | let _x = #[identity_attr] 2;
77
59
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
78
60
79
61
error[E0658]: custom attributes cannot be applied to expressions
80
- --> $DIR/proc-macro-gates.rs:45 :15
62
+ --> $DIR/proc-macro-gates.rs:41 :15
81
63
|
82
64
LL | let _x = [#[identity_attr] 2];
83
65
| ^^^^^^^^^^^^^^^^
@@ -86,7 +68,7 @@ LL | let _x = [#[identity_attr] 2];
86
68
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
87
69
88
70
error[E0658]: custom attributes cannot be applied to expressions
89
- --> $DIR/proc-macro-gates.rs:48 :14
71
+ --> $DIR/proc-macro-gates.rs:44 :14
90
72
|
91
73
LL | let _x = #[identity_attr] println!();
92
74
| ^^^^^^^^^^^^^^^^
@@ -95,7 +77,7 @@ LL | let _x = #[identity_attr] println!();
95
77
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
96
78
97
79
error[E0658]: procedural macros cannot be expanded to patterns
98
- --> $DIR/proc-macro-gates.rs:53 :12
80
+ --> $DIR/proc-macro-gates.rs:49 :12
99
81
|
100
82
LL | if let identity!(Some(_x)) = Some(3) {}
101
83
| ^^^^^^^^^^^^^^^^^^^
@@ -104,7 +86,7 @@ LL | if let identity!(Some(_x)) = Some(3) {}
104
86
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
105
87
106
88
error[E0658]: procedural macros cannot be expanded to statements
107
- --> $DIR/proc-macro-gates.rs:56 :5
89
+ --> $DIR/proc-macro-gates.rs:52 :5
108
90
|
109
91
LL | empty!(struct S;);
110
92
| ^^^^^^^^^^^^^^^^^^
@@ -113,7 +95,7 @@ LL | empty!(struct S;);
113
95
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
114
96
115
97
error[E0658]: procedural macros cannot be expanded to statements
116
- --> $DIR/proc-macro-gates.rs:57 :5
98
+ --> $DIR/proc-macro-gates.rs:53 :5
117
99
|
118
100
LL | empty!(let _x = 3;);
119
101
| ^^^^^^^^^^^^^^^^^^^^
@@ -122,7 +104,7 @@ LL | empty!(let _x = 3;);
122
104
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
123
105
124
106
error[E0658]: procedural macros cannot be expanded to expressions
125
- --> $DIR/proc-macro-gates.rs:59 :14
107
+ --> $DIR/proc-macro-gates.rs:55 :14
126
108
|
127
109
LL | let _x = identity!(3);
128
110
| ^^^^^^^^^^^^
@@ -131,14 +113,14 @@ LL | let _x = identity!(3);
131
113
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
132
114
133
115
error[E0658]: procedural macros cannot be expanded to expressions
134
- --> $DIR/proc-macro-gates.rs:60 :15
116
+ --> $DIR/proc-macro-gates.rs:56 :15
135
117
|
136
118
LL | let _x = [empty!(3)];
137
119
| ^^^^^^^^^
138
120
|
139
121
= note: for more information, see https://github.com/rust-lang/rust/issues/54727
140
122
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
141
123
142
- error: aborting due to 16 previous errors
124
+ error: aborting due to 14 previous errors
143
125
144
126
For more information about this error, try `rustc --explain E0658`.
0 commit comments