about summary refs log tree commit diff
path: root/tests/ui/attributes/invalid_macro_export_argument.rs
diff options
context:
space:
mode:
authorJonathan Brouwer <jonathantbrouwer@gmail.com>2025-09-21 10:21:11 -0400
committerJonathan Brouwer <jonathantbrouwer@gmail.com>2025-09-21 10:42:47 -0400
commitf7fa83ec626b91c360067e78eae94d9199cf43dc (patch)
treecfebf018806d1df83b779cbcfa36463276bc744b /tests/ui/attributes/invalid_macro_export_argument.rs
parent6abcadc235c24b0541e7bb3b6f6444d397d32f35 (diff)
downloadrust-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.rs12
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 {
     () => ()
 }