|
1 |
| -error: `#[macro_export]` can only take 1 or 0 arguments |
| 1 | +error: valid forms for the attribute are `#![macro_export(local_inner_macros)]` and `#![macro_export]` |
2 | 2 | --> $DIR/invalid_macro_export_argument.rs:7:1
|
3 | 3 | |
|
4 | 4 | LL | #[macro_export(hello, world)]
|
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
6 | 6 | |
|
| 7 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 8 | + = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571> |
7 | 9 | note: the lint level is defined here
|
8 | 10 | --> $DIR/invalid_macro_export_argument.rs:4:24
|
9 | 11 | |
|
10 | 12 | LL | #![cfg_attr(deny, deny(invalid_macro_export_arguments))]
|
11 | 13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
12 | 14 |
|
13 |
| -error: invalid `#[macro_export]` argument |
14 |
| - --> $DIR/invalid_macro_export_argument.rs:13:16 |
| 15 | +error: valid forms for the attribute are `#![macro_export(local_inner_macros)]` and `#![macro_export]` |
| 16 | + --> $DIR/invalid_macro_export_argument.rs:14:1 |
15 | 17 | |
|
16 | 18 | LL | #[macro_export(not_local_inner_macros)]
|
17 |
| - | ^^^^^^^^^^^^^^^^^^^^^^ |
| 19 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 20 | + | |
| 21 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 22 | + = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571> |
| 23 | + |
| 24 | +error: valid forms for the attribute are `#![macro_export(local_inner_macros)]` and `#![macro_export]` |
| 25 | + --> $DIR/invalid_macro_export_argument.rs:31:1 |
| 26 | + | |
| 27 | +LL | #[macro_export()] |
| 28 | + | ^^^^^^^^^^^^^^^^^ |
| 29 | + | |
| 30 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 31 | + = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571> |
18 | 32 |
|
19 |
| -error: invalid `#[macro_export]` argument |
20 |
| - --> $DIR/invalid_macro_export_argument.rs:33:16 |
| 33 | +error: valid forms for the attribute are `#![macro_export(local_inner_macros)]` and `#![macro_export]` |
| 34 | + --> $DIR/invalid_macro_export_argument.rs:38:1 |
21 | 35 | |
|
22 | 36 | LL | #[macro_export("blah")]
|
23 |
| - | ^^^^^^ |
| 37 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 38 | + | |
| 39 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 40 | + = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571> |
| 41 | + |
| 42 | +error: aborting due to 4 previous errors |
| 43 | + |
| 44 | +Future incompatibility report: Future breakage diagnostic: |
| 45 | +error: valid forms for the attribute are `#![macro_export(local_inner_macros)]` and `#![macro_export]` |
| 46 | + --> $DIR/invalid_macro_export_argument.rs:7:1 |
| 47 | + | |
| 48 | +LL | #[macro_export(hello, world)] |
| 49 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 50 | + | |
| 51 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 52 | + = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571> |
| 53 | +note: the lint level is defined here |
| 54 | + --> $DIR/invalid_macro_export_argument.rs:4:24 |
| 55 | + | |
| 56 | +LL | #![cfg_attr(deny, deny(invalid_macro_export_arguments))] |
| 57 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 58 | + |
| 59 | +Future breakage diagnostic: |
| 60 | +error: valid forms for the attribute are `#![macro_export(local_inner_macros)]` and `#![macro_export]` |
| 61 | + --> $DIR/invalid_macro_export_argument.rs:14:1 |
| 62 | + | |
| 63 | +LL | #[macro_export(not_local_inner_macros)] |
| 64 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 65 | + | |
| 66 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 67 | + = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571> |
| 68 | +note: the lint level is defined here |
| 69 | + --> $DIR/invalid_macro_export_argument.rs:4:24 |
| 70 | + | |
| 71 | +LL | #![cfg_attr(deny, deny(invalid_macro_export_arguments))] |
| 72 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
24 | 73 |
|
25 |
| -error: aborting due to 3 previous errors |
| 74 | +Future breakage diagnostic: |
| 75 | +error: valid forms for the attribute are `#![macro_export(local_inner_macros)]` and `#![macro_export]` |
| 76 | + --> $DIR/invalid_macro_export_argument.rs:31:1 |
| 77 | + | |
| 78 | +LL | #[macro_export()] |
| 79 | + | ^^^^^^^^^^^^^^^^^ |
| 80 | + | |
| 81 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 82 | + = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571> |
| 83 | +note: the lint level is defined here |
| 84 | + --> $DIR/invalid_macro_export_argument.rs:4:24 |
| 85 | + | |
| 86 | +LL | #![cfg_attr(deny, deny(invalid_macro_export_arguments))] |
| 87 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 88 | + |
| 89 | +Future breakage diagnostic: |
| 90 | +error: valid forms for the attribute are `#![macro_export(local_inner_macros)]` and `#![macro_export]` |
| 91 | + --> $DIR/invalid_macro_export_argument.rs:38:1 |
| 92 | + | |
| 93 | +LL | #[macro_export("blah")] |
| 94 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 95 | + | |
| 96 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 97 | + = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571> |
| 98 | +note: the lint level is defined here |
| 99 | + --> $DIR/invalid_macro_export_argument.rs:4:24 |
| 100 | + | |
| 101 | +LL | #![cfg_attr(deny, deny(invalid_macro_export_arguments))] |
| 102 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
26 | 103 |
|
0 commit comments