11error[E0659]: `m` is ambiguous
2- --> $DIR/restricted-shadowing-legacy.rs:93 :13
2+ --> $DIR/restricted-shadowing-legacy.rs:101 :13
33 |
44LL | m!(); //~ ERROR `m` is ambiguous
55 | ^
66 |
77note: `m` could refer to the name defined here
8- --> $DIR/restricted-shadowing-legacy.rs:80 :9
8+ --> $DIR/restricted-shadowing-legacy.rs:88 :9
99 |
10- LL | macro_rules! m { () => {} }
11- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
10+ LL | macro_rules! m { () => { Right } }
11+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212...
1313LL | include!();
1414 | ----------- in this macro invocation
1515note: `m` could also refer to the name defined here
16- --> $DIR/restricted-shadowing-legacy.rs:89 :9
16+ --> $DIR/restricted-shadowing-legacy.rs:97 :9
1717 |
1818LL | macro_rules! m { () => {} }
1919 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -23,21 +23,21 @@ LL | include!();
2323 = note: macro-expanded macros do not shadow
2424
2525error[E0659]: `m` is ambiguous
26- --> $DIR/restricted-shadowing-legacy.rs:131 :42
26+ --> $DIR/restricted-shadowing-legacy.rs:139 :42
2727 |
2828LL | macro_rules! gen_invoc { () => { m!() } } //~ ERROR `m` is ambiguous
2929 | ^
3030 |
3131note: `m` could refer to the name defined here
32- --> $DIR/restricted-shadowing-legacy.rs:80 :9
32+ --> $DIR/restricted-shadowing-legacy.rs:88 :9
3333 |
34- LL | macro_rules! m { () => {} }
35- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
34+ LL | macro_rules! m { () => { Right } }
35+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3636...
3737LL | include!();
3838 | ----------- in this macro invocation
3939note: `m` could also refer to the name defined here
40- --> $DIR/restricted-shadowing-legacy.rs:127 :9
40+ --> $DIR/restricted-shadowing-legacy.rs:135 :9
4141 |
4242LL | macro_rules! m { () => {} }
4343 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -47,21 +47,21 @@ LL | include!();
4747 = note: macro-expanded macros do not shadow
4848
4949error[E0659]: `m` is ambiguous
50- --> $DIR/restricted-shadowing-legacy.rs:140 :9
50+ --> $DIR/restricted-shadowing-legacy.rs:148 :9
5151 |
5252LL | m!(); //~ ERROR `m` is ambiguous
5353 | ^
5454 |
5555note: `m` could refer to the name defined here
56- --> $DIR/restricted-shadowing-legacy.rs:80 :9
56+ --> $DIR/restricted-shadowing-legacy.rs:88 :9
5757 |
58- LL | macro_rules! m { () => {} }
59- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
58+ LL | macro_rules! m { () => { Right } }
59+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6060...
6161LL | include!();
6262 | ----------- in this macro invocation
6363note: `m` could also refer to the name defined here
64- --> $DIR/restricted-shadowing-legacy.rs:136 :9
64+ --> $DIR/restricted-shadowing-legacy.rs:144 :9
6565 |
6666LL | macro_rules! m { () => {} }
6767 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -71,93 +71,93 @@ LL | include!();
7171 = note: macro-expanded macros do not shadow
7272
7373error[E0659]: `m` is ambiguous
74- --> $DIR/restricted-shadowing-legacy.rs:156 :9
74+ --> $DIR/restricted-shadowing-legacy.rs:164 :9
7575 |
7676LL | m!(); //~ ERROR `m` is ambiguous
7777 | ^
7878 |
7979note: `m` could refer to the name defined here
80- --> $DIR/restricted-shadowing-legacy.rs:80 :9
80+ --> $DIR/restricted-shadowing-legacy.rs:88 :9
8181 |
82- LL | macro_rules! m { () => {} }
83- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
82+ LL | macro_rules! m { () => { Right } }
83+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8484...
8585LL | include!();
8686 | ----------- in this macro invocation
8787note: `m` could also refer to the name defined here
88- --> $DIR/restricted-shadowing-legacy.rs:77 :9
88+ --> $DIR/restricted-shadowing-legacy.rs:85 :9
8989 |
90- LL | macro_rules! m { () => {} }
91- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
90+ LL | macro_rules! m { () => { Wrong } }
91+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9292...
9393LL | include!();
9494 | ----------- in this macro invocation
9595 = note: macro-expanded macros do not shadow
9696
9797error[E0659]: `m` is ambiguous
98- --> $DIR/restricted-shadowing-legacy.rs:172 :13
98+ --> $DIR/restricted-shadowing-legacy.rs:180 :13
9999 |
100100LL | m!(); //~ ERROR `m` is ambiguous
101101 | ^
102102 |
103103note: `m` could refer to the name defined here
104- --> $DIR/restricted-shadowing-legacy.rs:80 :9
104+ --> $DIR/restricted-shadowing-legacy.rs:88 :9
105105 |
106- LL | macro_rules! m { () => {} }
107- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
106+ LL | macro_rules! m { () => { Right } }
107+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108108...
109109LL | include!();
110110 | ----------- in this macro invocation
111111note: `m` could also refer to the name defined here
112- --> $DIR/restricted-shadowing-legacy.rs:77 :9
112+ --> $DIR/restricted-shadowing-legacy.rs:85 :9
113113 |
114- LL | macro_rules! m { () => {} }
115- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
114+ LL | macro_rules! m { () => { Wrong } }
115+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116116...
117117LL | include!();
118118 | ----------- in this macro invocation
119119 = note: macro-expanded macros do not shadow
120120
121121error[E0659]: `m` is ambiguous
122- --> $DIR/restricted-shadowing-legacy.rs:210 :42
122+ --> $DIR/restricted-shadowing-legacy.rs:218 :42
123123 |
124124LL | macro_rules! gen_invoc { () => { m!() } } //~ ERROR `m` is ambiguous
125125 | ^
126126 |
127127note: `m` could refer to the name defined here
128- --> $DIR/restricted-shadowing-legacy.rs:80 :9
128+ --> $DIR/restricted-shadowing-legacy.rs:88 :9
129129 |
130- LL | macro_rules! m { () => {} }
131- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
130+ LL | macro_rules! m { () => { Right } }
131+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
132132...
133133LL | include!();
134134 | ----------- in this macro invocation
135135note: `m` could also refer to the name defined here
136- --> $DIR/restricted-shadowing-legacy.rs:77 :9
136+ --> $DIR/restricted-shadowing-legacy.rs:85 :9
137137 |
138- LL | macro_rules! m { () => {} }
139- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
138+ LL | macro_rules! m { () => { Wrong } }
139+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
140140...
141141LL | include!();
142142 | ----------- in this macro invocation
143143 = note: macro-expanded macros do not shadow
144144
145145error[E0659]: `m` is ambiguous
146- --> $DIR/restricted-shadowing-legacy.rs:224 :9
146+ --> $DIR/restricted-shadowing-legacy.rs:232 :9
147147 |
148148LL | m!(); //~ ERROR `m` is ambiguous
149149 | ^
150150 |
151151note: `m` could refer to the name defined here
152- --> $DIR/restricted-shadowing-legacy.rs:80 :9
152+ --> $DIR/restricted-shadowing-legacy.rs:88 :9
153153 |
154- LL | macro_rules! m { () => {} }
155- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
154+ LL | macro_rules! m { () => { Right } }
155+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
156156...
157157LL | include!();
158158 | ----------- in this macro invocation
159159note: `m` could also refer to the name defined here
160- --> $DIR/restricted-shadowing-legacy.rs:219 :13
160+ --> $DIR/restricted-shadowing-legacy.rs:227 :13
161161 |
162162LL | macro_rules! m { () => {} }
163163 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -167,21 +167,21 @@ LL | include!();
167167 = note: macro-expanded macros do not shadow
168168
169169error[E0659]: `m` is ambiguous
170- --> $DIR/restricted-shadowing-legacy.rs:254 :42
170+ --> $DIR/restricted-shadowing-legacy.rs:262 :42
171171 |
172172LL | macro_rules! gen_invoc { () => { m!() } } //~ ERROR `m` is ambiguous
173173 | ^
174174 |
175175note: `m` could refer to the name defined here
176- --> $DIR/restricted-shadowing-legacy.rs:80 :9
176+ --> $DIR/restricted-shadowing-legacy.rs:88 :9
177177 |
178- LL | macro_rules! m { () => {} }
179- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
178+ LL | macro_rules! m { () => { Right } }
179+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
180180...
181181LL | include!();
182182 | ----------- in this macro invocation
183183note: `m` could also refer to the name defined here
184- --> $DIR/restricted-shadowing-legacy.rs:249 :13
184+ --> $DIR/restricted-shadowing-legacy.rs:257 :13
185185 |
186186LL | macro_rules! m { () => {} }
187187 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments