about summary refs log tree commit diff
path: root/src/test/ui/pattern
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-05-13 00:31:39 +0000
committerbors <bors@rust-lang.org>2021-05-13 00:31:39 +0000
commit9daf546b77dbeab7754a80d7336cd8d00c6746e4 (patch)
tree94e0eb47299bd27ff2b6335a8be277dd3c167b9d /src/test/ui/pattern
parent31bd868c39fd9ded7dd3a373bdcf9e8a45aadfe4 (diff)
parent0dd9f118d973bb077c6ff0e2a57421ca2eecb81c (diff)
downloadrust-9daf546b77dbeab7754a80d7336cd8d00c6746e4.tar.gz
rust-9daf546b77dbeab7754a80d7336cd8d00c6746e4.zip
Auto merge of #82069 - Aaron1011:verbose-in-macro, r=estebank
Show macro name in 'this error originates in macro' message

When there are multiple macros in use, it can be difficult to tell
which one was responsible for producing an error.
Diffstat (limited to 'src/test/ui/pattern')
-rw-r--r--src/test/ui/pattern/rest-pat-semantic-disallowed.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/pattern/rest-pat-semantic-disallowed.stderr b/src/test/ui/pattern/rest-pat-semantic-disallowed.stderr
index 95f6d53a9d4..06b6e80b44f 100644
--- a/src/test/ui/pattern/rest-pat-semantic-disallowed.stderr
+++ b/src/test/ui/pattern/rest-pat-semantic-disallowed.stderr
@@ -8,7 +8,7 @@ LL |     let mk_pat!();
    |         --------- in this macro invocation
    |
    = note: only allowed in tuple, tuple struct, and slice patterns
-   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
+   = note: this error originates in the macro `mk_pat` (in Nightly builds, run with -Z macro-backtrace for more info)
 
 error: `..` patterns are not allowed here
   --> $DIR/rest-pat-semantic-disallowed.rs:18:9