1+ error[E0565]: malformed `test_runner` attribute input
2+ --> $DIR/args-checked.rs:7:1
3+ |
4+ LL | #![test_runner(x = 5)]
5+ | ^^^^^^^^^^^^^^^-----^^
6+ | | |
7+ | | didn't expect a literal here
8+ | help: must be of the form: `#![test_runner(path)]`
9+
10+ error[E0565]: malformed `test_runner` attribute input
11+ --> $DIR/args-checked.rs:9:1
12+ |
13+ LL | #![test_runner(x(x,y,z))]
14+ | ^^^^^^^^^^^^^^^--------^^
15+ | | |
16+ | | didn't expect a literal here
17+ | help: must be of the form: `#![test_runner(path)]`
18+
119error[E0539]: malformed `inline` attribute input
2- --> $DIR/args-checked.rs:6 :1
20+ --> $DIR/args-checked.rs:12 :1
321 |
422LL | #[inline(always = 5)]
523 | ^^^^^^^^^----------^^
@@ -20,7 +38,7 @@ LL + #[inline]
2038 |
2139
2240error[E0539]: malformed `inline` attribute input
23- --> $DIR/args-checked.rs:8 :1
41+ --> $DIR/args-checked.rs:14 :1
2442 |
2543LL | #[inline(always(x, y, z))]
2644 | ^^^^^^^^^---------------^^
@@ -41,7 +59,7 @@ LL + #[inline]
4159 |
4260
4361error[E0539]: malformed `instruction_set` attribute input
44- --> $DIR/args-checked.rs:10 :1
62+ --> $DIR/args-checked.rs:16 :1
4563 |
4664LL | #[instruction_set(arm::a32 = 5)]
4765 | ^^^^^^^^^^^^^^^^^^------------^^
@@ -52,7 +70,7 @@ LL | #[instruction_set(arm::a32 = 5)]
5270 = note: for more information, visit <https://doc.rust-lang.org/reference/attributes/codegen.html#the-instruction_set-attribute>
5371
5472error[E0539]: malformed `instruction_set` attribute input
55- --> $DIR/args-checked.rs:12 :1
73+ --> $DIR/args-checked.rs:18 :1
5674 |
5775LL | #[instruction_set(arm::a32(x, y, z))]
5876 | ^^^^^^^^^^^^^^^^^^-----------------^^
@@ -63,7 +81,7 @@ LL | #[instruction_set(arm::a32(x, y, z))]
6381 = note: for more information, visit <https://doc.rust-lang.org/reference/attributes/codegen.html#the-instruction_set-attribute>
6482
6583error[E0539]: malformed `optimize` attribute input
66- --> $DIR/args-checked.rs:14 :1
84+ --> $DIR/args-checked.rs:20 :1
6785 |
6886LL | #[optimize(size = 5)]
6987 | ^^^^^^^^^^^--------^^
@@ -83,7 +101,7 @@ LL + #[optimize(speed)]
83101 |
84102
85103error[E0539]: malformed `optimize` attribute input
86- --> $DIR/args-checked.rs:16 :1
104+ --> $DIR/args-checked.rs:22 :1
87105 |
88106LL | #[optimize(size(x, y, z))]
89107 | ^^^^^^^^^^^-------------^^
@@ -103,7 +121,7 @@ LL + #[optimize(speed)]
103121 |
104122
105123error[E0539]: malformed `coverage` attribute input
106- --> $DIR/args-checked.rs:18 :1
124+ --> $DIR/args-checked.rs:24 :1
107125 |
108126LL | #[coverage(off = 5)]
109127 | ^^^^^^^^^^^-------^^
@@ -120,7 +138,7 @@ LL + #[coverage(on)]
120138 |
121139
122140error[E0539]: malformed `coverage` attribute input
123- --> $DIR/args-checked.rs:20 :1
141+ --> $DIR/args-checked.rs:26 :1
124142 |
125143LL | #[coverage(off(x, y, z))]
126144 | ^^^^^^^^^^^------------^^
@@ -137,7 +155,7 @@ LL + #[coverage(on)]
137155 |
138156
139157error[E0539]: malformed `rustc_abi` attribute input
140- --> $DIR/args-checked.rs:22 :1
158+ --> $DIR/args-checked.rs:28 :1
141159 |
142160LL | #[rustc_abi(debug = 5)]
143161 | ^^^^^^^^^^^-----------^
@@ -154,7 +172,7 @@ LL + #[rustc_abi(debug)]
154172 |
155173
156174error[E0539]: malformed `rustc_abi` attribute input
157- --> $DIR/args-checked.rs:24 :1
175+ --> $DIR/args-checked.rs:30 :1
158176 |
159177LL | #[rustc_abi(debug(x, y, z))]
160178 | ^^^^^^^^^^^----------------^
@@ -171,19 +189,19 @@ LL + #[rustc_abi(debug)]
171189 |
172190
173191error: `rustc_allow_const_fn_unstable` expects feature names
174- --> $DIR/args-checked.rs:40 :33
192+ --> $DIR/args-checked.rs:46 :33
175193 |
176194LL | #[rustc_allow_const_fn_unstable(x = 5)]
177195 | ^^^^^
178196
179197error: `rustc_allow_const_fn_unstable` expects feature names
180- --> $DIR/args-checked.rs:42 :33
198+ --> $DIR/args-checked.rs:48 :33
181199 |
182200LL | #[rustc_allow_const_fn_unstable(x(x, y, z))]
183201 | ^^^^^^^^^^
184202
185203error[E0539]: malformed `used` attribute input
186- --> $DIR/args-checked.rs:46 :1
204+ --> $DIR/args-checked.rs:52 :1
187205 |
188206LL | #[used(always = 5)]
189207 | ^^^^^^^----------^^
@@ -203,7 +221,7 @@ LL + #[used]
203221 |
204222
205223error[E0539]: malformed `used` attribute input
206- --> $DIR/args-checked.rs:48 :1
224+ --> $DIR/args-checked.rs:54 :1
207225 |
208226LL | #[used(always(x, y, z))]
209227 | ^^^^^^^---------------^^
@@ -223,7 +241,7 @@ LL + #[used]
223241 |
224242
225243error[E0539]: malformed `rustc_must_implement_one_of` attribute input
226- --> $DIR/args-checked.rs:52 :1
244+ --> $DIR/args-checked.rs:58 :1
227245 |
228246LL | #[rustc_must_implement_one_of(eq = 5, neq)]
229247 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^
@@ -232,7 +250,7 @@ LL | #[rustc_must_implement_one_of(eq = 5, neq)]
232250 | help: must be of the form: `#[rustc_must_implement_one_of(function1, function2, ...)]`
233251
234252error[E0539]: malformed `rustc_must_implement_one_of` attribute input
235- --> $DIR/args-checked.rs:54 :1
253+ --> $DIR/args-checked.rs:60 :1
236254 |
237255LL | #[rustc_must_implement_one_of(eq(x, y, z), neq)]
238256 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-----------^^^^^^^
@@ -241,23 +259,23 @@ LL | #[rustc_must_implement_one_of(eq(x, y, z), neq)]
241259 | help: must be of the form: `#[rustc_must_implement_one_of(function1, function2, ...)]`
242260
243261error[E0565]: malformed `rustc_dump_layout` attribute input
244- --> $DIR/args-checked.rs:60 :1
262+ --> $DIR/args-checked.rs:66 :1
245263 |
246264LL | #[rustc_dump_layout(debug = 5)]
247265 | ^^^^^^^^^^^^^^^^^^^^---------^^
248266 | |
249267 | didn't expect a literal here
250268
251269error[E0565]: malformed `rustc_dump_layout` attribute input
252- --> $DIR/args-checked.rs:62 :1
270+ --> $DIR/args-checked.rs:68 :1
253271 |
254272LL | #[rustc_dump_layout(debug(x, y, z))]
255273 | ^^^^^^^^^^^^^^^^^^^^--------------^^
256274 | |
257275 | didn't expect a literal here
258276
259277error: valid forms for the attribute are `#[macro_export(local_inner_macros)]` and `#[macro_export]`
260- --> $DIR/args-checked.rs:30 :1
278+ --> $DIR/args-checked.rs:36 :1
261279 |
262280LL | #[macro_export(local_inner_macros = 5)]
263281 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -267,21 +285,21 @@ LL | #[macro_export(local_inner_macros = 5)]
267285 = note: `#[deny(invalid_macro_export_arguments)]` (part of `#[deny(future_incompatible)]`) on by default
268286
269287error: valid forms for the attribute are `#[macro_export(local_inner_macros)]` and `#[macro_export]`
270- --> $DIR/args-checked.rs:33 :1
288+ --> $DIR/args-checked.rs:39 :1
271289 |
272290LL | #[macro_export(local_inner_macros(x, y, z))]
273291 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
274292 |
275293 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
276294 = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
277295
278- error: aborting due to 20 previous errors
296+ error: aborting due to 22 previous errors
279297
280298Some errors have detailed explanations: E0539, E0565.
281299For more information about an error, try `rustc --explain E0539`.
282300Future incompatibility report: Future breakage diagnostic:
283301error: valid forms for the attribute are `#[macro_export(local_inner_macros)]` and `#[macro_export]`
284- --> $DIR/args-checked.rs:30 :1
302+ --> $DIR/args-checked.rs:36 :1
285303 |
286304LL | #[macro_export(local_inner_macros = 5)]
287305 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -292,7 +310,7 @@ LL | #[macro_export(local_inner_macros = 5)]
292310
293311Future breakage diagnostic:
294312error: valid forms for the attribute are `#[macro_export(local_inner_macros)]` and `#[macro_export]`
295- --> $DIR/args-checked.rs:33 :1
313+ --> $DIR/args-checked.rs:39 :1
296314 |
297315LL | #[macro_export(local_inner_macros(x, y, z))]
298316 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments