about summary refs log tree commit diff
path: root/tests/ui/proc-macro
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-08-10 21:55:02 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-08-10 21:55:02 +0000
commit48816e74930cb8769fea5acb8a706878b4d79d5b (patch)
tree97add24276d9ac673f80cd1e937ed259d87def64 /tests/ui/proc-macro
parentd9bd24d331919299975f36c64ddf6febc4f41fd4 (diff)
downloadrust-48816e74930cb8769fea5acb8a706878b4d79d5b.tar.gz
rust-48816e74930cb8769fea5acb8a706878b4d79d5b.zip
Do not point at macro invocation when providing inference context
Diffstat (limited to 'tests/ui/proc-macro')
-rw-r--r--tests/ui/proc-macro/match-expander.rs1
-rw-r--r--tests/ui/proc-macro/match-expander.stderr5
2 files changed, 1 insertions, 5 deletions
diff --git a/tests/ui/proc-macro/match-expander.rs b/tests/ui/proc-macro/match-expander.rs
index 34e9a876153..23e5746c540 100644
--- a/tests/ui/proc-macro/match-expander.rs
+++ b/tests/ui/proc-macro/match-expander.rs
@@ -8,6 +8,5 @@ fn main() {
     match_expander::matcher!();
     //~^ ERROR: mismatched types
     //~| NOTE: expected `S`, found `bool`
-    //~| NOTE: this expression has type `S`
     //~| NOTE: in this expansion of match_expander::matcher!
 }
diff --git a/tests/ui/proc-macro/match-expander.stderr b/tests/ui/proc-macro/match-expander.stderr
index 38a0acc4941..b77468ec60a 100644
--- a/tests/ui/proc-macro/match-expander.stderr
+++ b/tests/ui/proc-macro/match-expander.stderr
@@ -2,10 +2,7 @@ error[E0308]: mismatched types
   --> $DIR/match-expander.rs:8:5
    |
 LL |     match_expander::matcher!();
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
-   |     |
-   |     expected `S`, found `bool`
-   |     this expression has type `S`
+   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `S`, found `bool`
    |
    = note: this error originates in the macro `match_expander::matcher` (in Nightly builds, run with -Z macro-backtrace for more info)