@@ -7,123 +7,101 @@ LL |     ($(a),?) => {} //~ERROR the `?` macro repetition operator
77error: no rules expected the token `?`
88  --> $DIR/macro-at-most-once-rep-2018.rs:36:11
99   |
10- LL | / macro_rules! foo {
11- LL | |     ($(a)?) => {}
12- LL | | }
13-    | |_- when calling this macro
10+ LL | macro_rules! foo {
11+    | ---------------- when calling this macro
1412...
15- LL |        foo!(a?); //~ ERROR no rules expected the token `?`
16-    |              ^ no rules expected the token `?`
13+ LL |     foo!(a?); //~ ERROR no rules expected the token `?`
14+    |           ^ no rules expected the token `?`
1715
1816error: no rules expected the token `?`
1917  --> $DIR/macro-at-most-once-rep-2018.rs:37:11
2018   |
21- LL | / macro_rules! foo {
22- LL | |     ($(a)?) => {}
23- LL | | }
24-    | |_- when calling this macro
19+ LL | macro_rules! foo {
20+    | ---------------- when calling this macro
2521...
26- LL |        foo!(a?a); //~ ERROR no rules expected the token `?`
27-    |              ^ no rules expected the token `?`
22+ LL |     foo!(a?a); //~ ERROR no rules expected the token `?`
23+    |           ^ no rules expected the token `?`
2824
2925error: no rules expected the token `?`
3026  --> $DIR/macro-at-most-once-rep-2018.rs:38:11
3127   |
32- LL | / macro_rules! foo {
33- LL | |     ($(a)?) => {}
34- LL | | }
35-    | |_- when calling this macro
28+ LL | macro_rules! foo {
29+    | ---------------- when calling this macro
3630...
37- LL |        foo!(a?a?a); //~ ERROR no rules expected the token `?`
38-    |              ^ no rules expected the token `?`
31+ LL |     foo!(a?a?a); //~ ERROR no rules expected the token `?`
32+    |           ^ no rules expected the token `?`
3933
4034error: unexpected end of macro invocation
4135  --> $DIR/macro-at-most-once-rep-2018.rs:40:5
4236   |
43- LL | / macro_rules! barplus {
44- LL | |     ($(a)?+) => {} // ok. matches "a+" and "+"
45- LL | | }
46-    | |_- when calling this macro
37+ LL | macro_rules! barplus {
38+    | -------------------- when calling this macro
4739...
48- LL |        barplus!(); //~ERROR unexpected end of macro invocation
49-    |        ^^^^^^^^^^^ unexpected end of macro invocation
40+ LL |     barplus!(); //~ERROR unexpected end of macro invocation
41+    |     ^^^^^^^^^^^ unexpected end of macro invocation
5042
5143error: unexpected end of macro invocation
5244  --> $DIR/macro-at-most-once-rep-2018.rs:41:14
5345   |
54- LL | / macro_rules! barplus {
55- LL | |     ($(a)?+) => {} // ok. matches "a+" and "+"
56- LL | | }
57-    | |_- when calling this macro
46+ LL | macro_rules! barplus {
47+    | -------------------- when calling this macro
5848...
59- LL |        barplus!(a); //~ERROR unexpected end of macro invocation
60-    |                 ^ unexpected end of macro invocation
49+ LL |     barplus!(a); //~ERROR unexpected end of macro invocation
50+    |              ^ unexpected end of macro invocation
6151
6252error: no rules expected the token `?`
6353  --> $DIR/macro-at-most-once-rep-2018.rs:42:15
6454   |
65- LL | / macro_rules! barplus {
66- LL | |     ($(a)?+) => {} // ok. matches "a+" and "+"
67- LL | | }
68-    | |_- when calling this macro
55+ LL | macro_rules! barplus {
56+    | -------------------- when calling this macro
6957...
70- LL |        barplus!(a?); //~ ERROR no rules expected the token `?`
71-    |                  ^ no rules expected the token `?`
58+ LL |     barplus!(a?); //~ ERROR no rules expected the token `?`
59+    |               ^ no rules expected the token `?`
7260
7361error: no rules expected the token `?`
7462  --> $DIR/macro-at-most-once-rep-2018.rs:43:15
7563   |
76- LL | / macro_rules! barplus {
77- LL | |     ($(a)?+) => {} // ok. matches "a+" and "+"
78- LL | | }
79-    | |_- when calling this macro
64+ LL | macro_rules! barplus {
65+    | -------------------- when calling this macro
8066...
81- LL |        barplus!(a?a); //~ ERROR no rules expected the token `?`
82-    |                  ^ no rules expected the token `?`
67+ LL |     barplus!(a?a); //~ ERROR no rules expected the token `?`
68+    |               ^ no rules expected the token `?`
8369
8470error: unexpected end of macro invocation
8571  --> $DIR/macro-at-most-once-rep-2018.rs:47:5
8672   |
87- LL | / macro_rules! barstar {
88- LL | |     ($(a)?*) => {} // ok. matches "a*" and "*"
89- LL | | }
90-    | |_- when calling this macro
73+ LL | macro_rules! barstar {
74+    | -------------------- when calling this macro
9175...
92- LL |        barstar!(); //~ERROR unexpected end of macro invocation
93-    |        ^^^^^^^^^^^ unexpected end of macro invocation
76+ LL |     barstar!(); //~ERROR unexpected end of macro invocation
77+    |     ^^^^^^^^^^^ unexpected end of macro invocation
9478
9579error: unexpected end of macro invocation
9680  --> $DIR/macro-at-most-once-rep-2018.rs:48:14
9781   |
98- LL | / macro_rules! barstar {
99- LL | |     ($(a)?*) => {} // ok. matches "a*" and "*"
100- LL | | }
101-    | |_- when calling this macro
82+ LL | macro_rules! barstar {
83+    | -------------------- when calling this macro
10284...
103- LL |        barstar!(a); //~ERROR unexpected end of macro invocation
104-    |                 ^ unexpected end of macro invocation
85+ LL |     barstar!(a); //~ERROR unexpected end of macro invocation
86+    |              ^ unexpected end of macro invocation
10587
10688error: no rules expected the token `?`
10789  --> $DIR/macro-at-most-once-rep-2018.rs:49:15
10890   |
109- LL | / macro_rules! barstar {
110- LL | |     ($(a)?*) => {} // ok. matches "a*" and "*"
111- LL | | }
112-    | |_- when calling this macro
91+ LL | macro_rules! barstar {
92+    | -------------------- when calling this macro
11393...
114- LL |        barstar!(a?); //~ ERROR no rules expected the token `?`
115-    |                  ^ no rules expected the token `?`
94+ LL |     barstar!(a?); //~ ERROR no rules expected the token `?`
95+    |               ^ no rules expected the token `?`
11696
11797error: no rules expected the token `?`
11898  --> $DIR/macro-at-most-once-rep-2018.rs:50:15
11999   |
120- LL | / macro_rules! barstar {
121- LL | |     ($(a)?*) => {} // ok. matches "a*" and "*"
122- LL | | }
123-    | |_- when calling this macro
100+ LL | macro_rules! barstar {
101+    | -------------------- when calling this macro
124102...
125- LL |        barstar!(a?a); //~ ERROR no rules expected the token `?`
126-    |                  ^ no rules expected the token `?`
103+ LL |     barstar!(a?a); //~ ERROR no rules expected the token `?`
104+    |               ^ no rules expected the token `?`
127105
128106error: aborting due to 12 previous errors
129107
0 commit comments