@@ -39,7 +39,25 @@ LL | #[macro_export("blah")]
3939 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
4040 = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
4141
42- error: aborting due to 4 previous errors
42+ error: valid forms for the attribute are `#[macro_export(local_inner_macros)]` and `#[macro_export]`
43+ --> $DIR/invalid_macro_export_argument.rs:45:1
44+ |
45+ LL | #[macro_export(local_inner_macros = false)]
46+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47+ |
48+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
49+ = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
50+
51+ error: valid forms for the attribute are `#[macro_export(local_inner_macros)]` and `#[macro_export]`
52+ --> $DIR/invalid_macro_export_argument.rs:52:1
53+ |
54+ LL | #[macro_export(local_inner_macros(false))]
55+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56+ |
57+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
58+ = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
59+
60+ error: aborting due to 6 previous errors
4361
4462Future incompatibility report: Future breakage diagnostic:
4563error: valid forms for the attribute are `#[macro_export(local_inner_macros)]` and `#[macro_export]`
@@ -101,3 +119,33 @@ note: the lint level is defined here
101119LL | #![cfg_attr(deny, deny(invalid_macro_export_arguments))]
102120 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
103121
122+ Future breakage diagnostic:
123+ error: valid forms for the attribute are `#[macro_export(local_inner_macros)]` and `#[macro_export]`
124+ --> $DIR/invalid_macro_export_argument.rs:45:1
125+ |
126+ LL | #[macro_export(local_inner_macros = false)]
127+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128+ |
129+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
130+ = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
131+ note: the lint level is defined here
132+ --> $DIR/invalid_macro_export_argument.rs:4:24
133+ |
134+ LL | #![cfg_attr(deny, deny(invalid_macro_export_arguments))]
135+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
136+
137+ Future breakage diagnostic:
138+ error: valid forms for the attribute are `#[macro_export(local_inner_macros)]` and `#[macro_export]`
139+ --> $DIR/invalid_macro_export_argument.rs:52:1
140+ |
141+ LL | #[macro_export(local_inner_macros(false))]
142+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
143+ |
144+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
145+ = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
146+ note: the lint level is defined here
147+ --> $DIR/invalid_macro_export_argument.rs:4:24
148+ |
149+ LL | #![cfg_attr(deny, deny(invalid_macro_export_arguments))]
150+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
151+
0 commit comments