Show backtrace numbers in backtrace whenever more than one is involved
Previously, we only displayed 'frame' numbers in a macro backtrace when more than two frames were involved. This commit should help make backtrace more readable, since these kinds of messages can quickly get confusing.
This commit is contained in:
parent
8b84156c6e
commit
f9f8923393
2 changed files with 6 additions and 6 deletions
|
|
@ -17,20 +17,20 @@ LL | / macro_rules! pong {
|
|||
LL | | () => { syntax error };
|
||||
| | ^^^^^ expected one of 8 possible tokens
|
||||
LL | | }
|
||||
| |__- in this expansion of `pong!`
|
||||
| |__- in this expansion of `pong!` (#2)
|
||||
...
|
||||
LL | ping!();
|
||||
| -------- in this macro invocation
|
||||
| -------- in this macro invocation (#1)
|
||||
|
|
||||
::: $DIR/auxiliary/ping.rs:5:1
|
||||
|
|
||||
LL | / macro_rules! ping {
|
||||
LL | | () => {
|
||||
LL | | pong!();
|
||||
| | -------- in this macro invocation
|
||||
| | -------- in this macro invocation (#2)
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_- in this expansion of `ping!`
|
||||
| |_- in this expansion of `ping!` (#1)
|
||||
|
||||
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `error`
|
||||
--> $DIR/main.rs:10:20
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue