Rollup merge of #59574 - JohnTitor:distinguish-error-vs-warning, r=Centril
Distinguish message for external macros depending on error level fixes #57716 (I picked you because assigned to this issue.) r? @estebank
This commit is contained in:
commit
fb8396da84
3 changed files with 16 additions and 5 deletions
|
|
@ -5,5 +5,5 @@ LL | m!();
|
|||
| ^^^^^
|
||||
|
|
||||
= note: `use $crate;` was erroneously allowed and will become a hard error in a future release
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
|
|
|
|||
|
|
@ -6,5 +6,5 @@ LL | write!(&mut example, "{}", 42);
|
|||
|
|
||||
= note: `-W unused-must-use` implied by `-W unused`
|
||||
= note: this `Result` may be an `Err` variant, which should be handled
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue