rust/src/test/ui/lint/lint-stability2.stderr
Aaron Hill 0dd9f118d9
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.
2021-05-12 19:03:06 -04:00

16 lines
450 B
Plaintext

error: use of deprecated function `lint_stability::deprecated`: text
--> $DIR/lint-stability2.rs:12:5
|
LL | macro_test!();
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> $DIR/lint-stability2.rs:4:9
|
LL | #![deny(deprecated)]
| ^^^^^^^^^^
= note: this error originates in the macro `macro_test` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error