Move error checks out of span for easier to follow .stderr
This commit is contained in:
parent
b7bb67abd3
commit
d4b8e99540
2 changed files with 6 additions and 15 deletions
|
@ -17,10 +17,10 @@
|
||||||
// a local macro
|
// a local macro
|
||||||
macro_rules! pong {
|
macro_rules! pong {
|
||||||
() => { syntax error };
|
() => { 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() {
|
fn main() {
|
||||||
pong!();
|
pong!();
|
||||||
|
|
|
@ -4,10 +4,7 @@ error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found
|
||||||
18 | / macro_rules! pong {
|
18 | / macro_rules! pong {
|
||||||
19 | | () => { syntax error };
|
19 | | () => { syntax error };
|
||||||
| | ^^^^^ expected one of 8 possible tokens here
|
| | ^^^^^ expected one of 8 possible tokens here
|
||||||
20 | | //~^ ERROR expected one of
|
20 | | }
|
||||||
21 | | //~| ERROR expected one of
|
|
||||||
22 | | //~| ERROR expected one of
|
|
||||||
23 | | }
|
|
||||||
| |_- in this expansion of `pong!`
|
| |_- in this expansion of `pong!`
|
||||||
...
|
...
|
||||||
26 | pong!();
|
26 | pong!();
|
||||||
|
@ -19,10 +16,7 @@ error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found
|
||||||
18 | / macro_rules! pong {
|
18 | / macro_rules! pong {
|
||||||
19 | | () => { syntax error };
|
19 | | () => { syntax error };
|
||||||
| | ^^^^^ expected one of 8 possible tokens here
|
| | ^^^^^ expected one of 8 possible tokens here
|
||||||
20 | | //~^ ERROR expected one of
|
20 | | }
|
||||||
21 | | //~| ERROR expected one of
|
|
||||||
22 | | //~| ERROR expected one of
|
|
||||||
23 | | }
|
|
||||||
| |_- in this expansion of `pong!`
|
| |_- in this expansion of `pong!`
|
||||||
...
|
...
|
||||||
27 | ping!();
|
27 | ping!();
|
||||||
|
@ -42,10 +36,7 @@ error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found
|
||||||
18 | / macro_rules! pong {
|
18 | / macro_rules! pong {
|
||||||
19 | | () => { syntax error };
|
19 | | () => { syntax error };
|
||||||
| | ^^^^^ expected one of 8 possible tokens here
|
| | ^^^^^ expected one of 8 possible tokens here
|
||||||
20 | | //~^ ERROR expected one of
|
20 | | }
|
||||||
21 | | //~| ERROR expected one of
|
|
||||||
22 | | //~| ERROR expected one of
|
|
||||||
23 | | }
|
|
||||||
| |_- in this expansion of `pong!` (#5)
|
| |_- in this expansion of `pong!` (#5)
|
||||||
...
|
...
|
||||||
28 | deep!();
|
28 | deep!();
|
||||||
|
|
Loading…
Reference in a new issue