@@ -156,20 +156,54 @@ LL - #[coverage(off(x, y, z))]
156156LL + #[coverage(on)]
157157 |
158158
159+ error[E0539]: malformed `rustc_abi` attribute input
160+ --> $DIR/args-checked.rs:23:1
161+ |
162+ LL | #[rustc_abi(debug = 5)]
163+ | ^^^^^^^^^^^-----------^
164+ | |
165+ | valid arguments are `assert_eq` or `debug`
166+ |
167+ help: try changing it to one of the following valid forms of the attribute
168+ |
169+ LL - #[rustc_abi(debug = 5)]
170+ LL + #[rustc_abi(assert_eq)]
171+ |
172+ LL - #[rustc_abi(debug = 5)]
173+ LL + #[rustc_abi(debug)]
174+ |
175+
176+ error[E0539]: malformed `rustc_abi` attribute input
177+ --> $DIR/args-checked.rs:25:1
178+ |
179+ LL | #[rustc_abi(debug(x, y, z))]
180+ | ^^^^^^^^^^^----------------^
181+ | |
182+ | valid arguments are `assert_eq` or `debug`
183+ |
184+ help: try changing it to one of the following valid forms of the attribute
185+ |
186+ LL - #[rustc_abi(debug(x, y, z))]
187+ LL + #[rustc_abi(assert_eq)]
188+ |
189+ LL - #[rustc_abi(debug(x, y, z))]
190+ LL + #[rustc_abi(debug)]
191+ |
192+
159193error: `rustc_allow_const_fn_unstable` expects feature names
160- --> $DIR/args-checked.rs:37 :33
194+ --> $DIR/args-checked.rs:41 :33
161195 |
162196LL | #[rustc_allow_const_fn_unstable(x = 5)]
163197 | ^^^^^
164198
165199error: `rustc_allow_const_fn_unstable` expects feature names
166- --> $DIR/args-checked.rs:39 :33
200+ --> $DIR/args-checked.rs:43 :33
167201 |
168202LL | #[rustc_allow_const_fn_unstable(x(x, y, z))]
169203 | ^^^^^^^^^^
170204
171205error[E0539]: malformed `used` attribute input
172- --> $DIR/args-checked.rs:43 :1
206+ --> $DIR/args-checked.rs:47 :1
173207 |
174208LL | #[used(always = 5)]
175209 | ^^^^^^^----------^^
@@ -189,7 +223,7 @@ LL + #[used]
189223 |
190224
191225error[E0539]: malformed `used` attribute input
192- --> $DIR/args-checked.rs:45 :1
226+ --> $DIR/args-checked.rs:49 :1
193227 |
194228LL | #[used(always(x, y, z))]
195229 | ^^^^^^^---------------^^
@@ -209,7 +243,7 @@ LL + #[used]
209243 |
210244
211245error[E0565]: malformed `rustc_must_implement_one_of` attribute input
212- --> $DIR/args-checked.rs:49 :1
246+ --> $DIR/args-checked.rs:53 :1
213247 |
214248LL | #[rustc_must_implement_one_of(eq = 5, neq)]
215249 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^
@@ -223,7 +257,7 @@ LL + #[rustc_must_implement_one_of(function1, function2, ...)]
223257 |
224258
225259error[E0565]: malformed `rustc_must_implement_one_of` attribute input
226- --> $DIR/args-checked.rs:51 :1
260+ --> $DIR/args-checked.rs:55 :1
227261 |
228262LL | #[rustc_must_implement_one_of(eq(x, y, z), neq)]
229263 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-----------^^^^^^^
@@ -237,23 +271,23 @@ LL + #[rustc_must_implement_one_of(function1, function2, ...)]
237271 |
238272
239273error[E0565]: malformed `rustc_dump_layout` attribute input
240- --> $DIR/args-checked.rs:57 :1
274+ --> $DIR/args-checked.rs:61 :1
241275 |
242276LL | #[rustc_dump_layout(debug = 5)]
243277 | ^^^^^^^^^^^^^^^^^^^^---------^^
244278 | |
245279 | didn't expect a literal here
246280
247281error[E0565]: malformed `rustc_dump_layout` attribute input
248- --> $DIR/args-checked.rs:59 :1
282+ --> $DIR/args-checked.rs:63 :1
249283 |
250284LL | #[rustc_dump_layout(debug(x, y, z))]
251285 | ^^^^^^^^^^^^^^^^^^^^--------------^^
252286 | |
253287 | didn't expect a literal here
254288
255289error: valid forms for the attribute are `#[macro_export(local_inner_macros)]` and `#[macro_export]`
256- --> $DIR/args-checked.rs:27 :1
290+ --> $DIR/args-checked.rs:31 :1
257291 |
258292LL | #[macro_export(local_inner_macros = 5)]
259293 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -263,21 +297,21 @@ LL | #[macro_export(local_inner_macros = 5)]
263297 = note: `#[deny(invalid_macro_export_arguments)]` (part of `#[deny(future_incompatible)]`) on by default
264298
265299error: valid forms for the attribute are `#[macro_export(local_inner_macros)]` and `#[macro_export]`
266- --> $DIR/args-checked.rs:30 :1
300+ --> $DIR/args-checked.rs:34 :1
267301 |
268302LL | #[macro_export(local_inner_macros(x, y, z))]
269303 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
270304 |
271305 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
272306 = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
273307
274- error: aborting due to 19 previous errors
308+ error: aborting due to 21 previous errors
275309
276310Some errors have detailed explanations: E0539, E0565.
277311For more information about an error, try `rustc --explain E0539`.
278312Future incompatibility report: Future breakage diagnostic:
279313error: valid forms for the attribute are `#[macro_export(local_inner_macros)]` and `#[macro_export]`
280- --> $DIR/args-checked.rs:27 :1
314+ --> $DIR/args-checked.rs:31 :1
281315 |
282316LL | #[macro_export(local_inner_macros = 5)]
283317 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -288,7 +322,7 @@ LL | #[macro_export(local_inner_macros = 5)]
288322
289323Future breakage diagnostic:
290324error: valid forms for the attribute are `#[macro_export(local_inner_macros)]` and `#[macro_export]`
291- --> $DIR/args-checked.rs:30 :1
325+ --> $DIR/args-checked.rs:34 :1
292326 |
293327LL | #[macro_export(local_inner_macros(x, y, z))]
294328 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments