Skip to content

Commit 96af578

Browse files
committed
tests: add a revision to macro_backtrace without -Zmacro-backtrace.
1 parent 4c7eb59 commit 96af578

File tree

3 files changed

+40
-4
lines changed

3 files changed

+40
-4
lines changed

src/test/ui/macro_backtrace/main.stderr renamed to src/test/ui/macro_backtrace/main.-Zmacro-backtrace.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `error`
2-
--> $DIR/main.rs:9:20
2+
--> $DIR/main.rs:10:20
33
|
44
LL | / macro_rules! pong {
55
LL | | () => { syntax error };
@@ -11,7 +11,7 @@ LL | pong!();
1111
| -------- in this macro invocation
1212

1313
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `error`
14-
--> $DIR/main.rs:9:20
14+
--> $DIR/main.rs:10:20
1515
|
1616
LL | / macro_rules! pong {
1717
LL | | () => { syntax error };
@@ -31,7 +31,7 @@ LL | () => { pong ! () ; }
3131
| in this expansion of `ping!`
3232

3333
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `error`
34-
--> $DIR/main.rs:9:20
34+
--> $DIR/main.rs:10:20
3535
|
3636
LL | / macro_rules! pong {
3737
LL | | () => { syntax error };
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `error`
2+
--> $DIR/main.rs:10:20
3+
|
4+
LL | () => { syntax error };
5+
| ^^^^^ expected one of 8 possible tokens
6+
...
7+
LL | pong!();
8+
| -------- in this macro invocation
9+
|
10+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
11+
12+
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `error`
13+
--> $DIR/main.rs:10:20
14+
|
15+
LL | () => { syntax error };
16+
| ^^^^^ expected one of 8 possible tokens
17+
...
18+
LL | ping!();
19+
| -------- in this macro invocation
20+
|
21+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
22+
23+
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `error`
24+
--> $DIR/main.rs:10:20
25+
|
26+
LL | () => { syntax error };
27+
| ^^^^^ expected one of 8 possible tokens
28+
...
29+
LL | deep!();
30+
| -------- in this macro invocation
31+
|
32+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
33+
34+
error: aborting due to 3 previous errors
35+

src/test/ui/macro_backtrace/main.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Test that the macro backtrace facility works
22
// aux-build:ping.rs
3-
// compile-flags: -Z macro-backtrace
3+
// revisions: default -Zmacro-backtrace
4+
//[-Zmacro-backtrace] compile-flags: -Z macro-backtrace
45

56
#[macro_use] extern crate ping;
67

0 commit comments

Comments
 (0)