rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros.

This commit is contained in:
Eduard-Mihai Burtescu 2019-12-16 15:56:47 +02:00
parent ab080973cb
commit 4c7eb59e81
280 changed files with 888 additions and 119 deletions

View file

@ -9,7 +9,7 @@ note: the lint level is defined here
|
LL | #![deny(deprecated)]
| ^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error

View file

@ -9,7 +9,7 @@ note: the lint level is defined here
|
LL | #![deny(deprecated)]
| ^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error

View file

@ -90,6 +90,8 @@ LL | unsafe {}
...
LL | unsafe_in_macro!()
| ------------------ in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 14 previous errors

View file

@ -12,6 +12,7 @@ note: the lint level is defined here
|
LL | #![warn(unused_imports)]
| ^^^^^^^^^^^^^^
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
warning: unused import: `std::string::ToString`
--> $DIR/lints-in-foreign-macros.rs:16:18

View file

@ -5,12 +5,15 @@ LL | #[test]
| ^^^^^^^
|
= note: requested on the command line with `-D unnameable-test-items`
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: cannot test inner items
--> $DIR/test-inner-fn.rs:13:9
|
LL | #[test]
| ^^^^^^^
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors

View file

@ -132,6 +132,7 @@ LL | define_empty_struct_with_visibility!(pub, Fluorine);
| in this macro invocation
|
= help: or consider exporting it for use by other crates
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
warning: unreachable `pub` item
--> $DIR/unreachable_pub-pub_crate.rs:45:9

View file

@ -132,6 +132,7 @@ LL | define_empty_struct_with_visibility!(pub, Fluorine);
| in this macro invocation
|
= help: or consider exporting it for use by other crates
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
warning: unreachable `pub` item
--> $DIR/unreachable_pub.rs:41:9