summary refs log tree commit diff
path: root/tests/ui/macros
diff options
context:
space:
mode:
authorJonathan Brouwer <jonathantbrouwer@gmail.com>2025-07-07 09:10:38 +0200
committerJonathan Brouwer <jonathantbrouwer@gmail.com>2025-07-15 09:21:27 +0200
commitc7f5ddc09871dc74c9f451435b042707eef5dc6c (patch)
tree263277570b049f70da71b635970048ebb434efda /tests/ui/macros
parent6133c676d7b5e025121c858c4e7942cce70adf27 (diff)
downloadrust-c7f5ddc09871dc74c9f451435b042707eef5dc6c.tar.gz
rust-c7f5ddc09871dc74c9f451435b042707eef5dc6c.zip
Changes to diagnostics
Diffstat (limited to 'tests/ui/macros')
-rw-r--r--tests/ui/macros/macro-outer-attributes.stderr14
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/ui/macros/macro-outer-attributes.stderr b/tests/ui/macros/macro-outer-attributes.stderr
index a894c90f4c3..9215754d4bb 100644
--- a/tests/ui/macros/macro-outer-attributes.stderr
+++ b/tests/ui/macros/macro-outer-attributes.stderr
@@ -10,16 +10,10 @@ note: found an item that was configured out
 LL |       pub fn bar() { });
    |              ^^^
 note: the item is gated here
-  --> $DIR/macro-outer-attributes.rs:5:45
-   |
-LL |                        $i:item) => (mod $nm { #[$a] $i }); }
-   |                                               ^^^^^
-LL |
-LL | / test!(a,
-LL | |       #[cfg(false)],
-LL | |       pub fn bar() { });
-   | |_______________________- in this macro invocation
-   = note: this error originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
+  --> $DIR/macro-outer-attributes.rs:8:13
+   |
+LL |       #[cfg(false)],
+   |             ^^^^^
 help: consider importing this function
    |
 LL + use b::bar;