Skip to content

Commit

Permalink
Move error checks out of span for easier to follow .stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Dec 13, 2017
1 parent b7bb67a commit d4b8e99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
6 changes: 3 additions & 3 deletions src/test/ui/macro_backtrace/main.rs
Expand Up @@ -17,10 +17,10 @@
// a local macro
macro_rules! pong {
() => { syntax error };
//~^ ERROR expected one of
//~| ERROR expected one of
//~| ERROR expected one of
}
//~^^ ERROR expected one of
//~| ERROR expected one of
//~| ERROR expected one of

fn main() {
pong!();
Expand Down
15 changes: 3 additions & 12 deletions src/test/ui/macro_backtrace/main.stderr
Expand Up @@ -4,10 +4,7 @@ error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found
18 | / macro_rules! pong {
19 | | () => { syntax error };
| | ^^^^^ expected one of 8 possible tokens here
20 | | //~^ ERROR expected one of
21 | | //~| ERROR expected one of
22 | | //~| ERROR expected one of
23 | | }
20 | | }
| |_- in this expansion of `pong!`
...
26 | pong!();
Expand All @@ -19,10 +16,7 @@ error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found
18 | / macro_rules! pong {
19 | | () => { syntax error };
| | ^^^^^ expected one of 8 possible tokens here
20 | | //~^ ERROR expected one of
21 | | //~| ERROR expected one of
22 | | //~| ERROR expected one of
23 | | }
20 | | }
| |_- in this expansion of `pong!`
...
27 | ping!();
Expand All @@ -42,10 +36,7 @@ error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found
18 | / macro_rules! pong {
19 | | () => { syntax error };
| | ^^^^^ expected one of 8 possible tokens here
20 | | //~^ ERROR expected one of
21 | | //~| ERROR expected one of
22 | | //~| ERROR expected one of
23 | | }
20 | | }
| |_- in this expansion of `pong!` (#5)
...
28 | deep!();
Expand Down

0 comments on commit d4b8e99

Please sign in to comment.