]> git.lizzy.rs Git - rust.git/commitdiff
Move error checks out of span for easier to follow `.stderr`
authorEsteban Küber <esteban@kuber.com.ar>
Wed, 13 Dec 2017 19:27:18 +0000 (11:27 -0800)
committerEsteban Küber <esteban@kuber.com.ar>
Wed, 13 Dec 2017 19:27:18 +0000 (11:27 -0800)
src/test/ui/macro_backtrace/main.rs
src/test/ui/macro_backtrace/main.stderr

index 77faac17d1a2877d08238a2d43c62f8fa0f543e8..72a5c0d5e3728bd696b3c1a94c6bbf61ce2a7a51 100644 (file)
 // 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!();
index e543a9f5bc0c9a61f0aee52cd03e46c327f18bcd..5990f71b3ca0ad1f7b74d980855f0d201f254187 100644 (file)
@@ -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!();
@@ -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!();
@@ -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!();