Mention first and last macro in backtrace

This commit is contained in:
Michael Goulet 2022-06-20 19:25:52 -07:00
parent 475aec1188
commit 01b2379e49
78 changed files with 157 additions and 144 deletions

View file

@ -27,7 +27,7 @@ LL | | });
|
= note: this pattern will always match, so the loop will never exit
= help: consider instead using a `loop { ... }` with a `let` inside it
= note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this warning originates in the macro `foo` which comes from the expansion of the macro `bar` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: irrefutable `while let` pattern
--> $DIR/while-let-2.rs:27:11