diff options
| author | Jonathan Brouwer <jonathantbrouwer@gmail.com> | 2025-09-21 10:21:11 -0400 |
|---|---|---|
| committer | Jonathan Brouwer <jonathantbrouwer@gmail.com> | 2025-09-21 10:42:47 -0400 |
| commit | f7fa83ec626b91c360067e78eae94d9199cf43dc (patch) | |
| tree | cfebf018806d1df83b779cbcfa36463276bc744b /tests/ui/attributes/invalid_macro_export_argument.rs | |
| parent | 6abcadc235c24b0541e7bb3b6f6444d397d32f35 (diff) | |
| download | rust-f7fa83ec626b91c360067e78eae94d9199cf43dc.tar.gz rust-f7fa83ec626b91c360067e78eae94d9199cf43dc.zip | |
Changes to uitests for macro_export port
Co-authored-by: Anne Stijns <anstijns@gmail.com>
Diffstat (limited to 'tests/ui/attributes/invalid_macro_export_argument.rs')
| -rw-r--r-- | tests/ui/attributes/invalid_macro_export_argument.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/ui/attributes/invalid_macro_export_argument.rs b/tests/ui/attributes/invalid_macro_export_argument.rs index c5fe39d062a..05a40913434 100644 --- a/tests/ui/attributes/invalid_macro_export_argument.rs +++ b/tests/ui/attributes/invalid_macro_export_argument.rs @@ -5,13 +5,15 @@ #![cfg_attr(allow, allow(invalid_macro_export_arguments))] #[macro_export(hello, world)] -//[deny]~^ ERROR `#[macro_export]` can only take 1 or 0 arguments +//[deny]~^ ERROR valid forms for the attribute are +//[deny]~| WARN this was previously accepted macro_rules! a { () => () } #[macro_export(not_local_inner_macros)] -//[deny]~^ ERROR invalid `#[macro_export]` argument +//[deny]~^ ERROR valid forms for the attribute are +//[deny]~| WARN this was previously accepted macro_rules! b { () => () } @@ -20,18 +22,22 @@ macro_rules! b { macro_rules! c { () => () } + #[macro_export(local_inner_macros)] macro_rules! d { () => () } #[macro_export()] +//[deny]~^ ERROR valid forms for the attribute are +//[deny]~| WARN this was previously accepted macro_rules! e { () => () } #[macro_export("blah")] -//[deny]~^ ERROR invalid `#[macro_export]` argument +//[deny]~^ ERROR valid forms for the attribute are +//[deny]~| WARN this was previously accepted macro_rules! f { () => () } |
