fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
7.5 KiB219 linesraw
1error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
2  --> $DIR/restricted-shadowing-legacy.rs:101:13
3   |
4LL |             m!();
5   |             ^ ambiguous name
6...
7LL | include!();
8   | ----------- in this macro invocation
9   |
10note: `m` could refer to the macro defined here
11  --> $DIR/restricted-shadowing-legacy.rs:88:9
12   |
13LL |         macro_rules! m { () => { Right } }
14   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15...
16LL | include!();
17   | ----------- in this macro invocation
18note: `m` could also refer to the macro defined here
19  --> $DIR/restricted-shadowing-legacy.rs:97:9
20   |
21LL |         macro_rules! m { () => {} }
22   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
23...
24LL | include!();
25   | ----------- in this macro invocation
26   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
27
28error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
29  --> $DIR/restricted-shadowing-legacy.rs:139:42
30   |
31LL |         macro_rules! gen_invoc { () => { m!() } }
32   |                                          ^ ambiguous name
33...
34LL | include!();
35   | ----------- in this macro invocation
36   |
37note: `m` could refer to the macro defined here
38  --> $DIR/restricted-shadowing-legacy.rs:88:9
39   |
40LL |         macro_rules! m { () => { Right } }
41   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42...
43LL | include!();
44   | ----------- in this macro invocation
45note: `m` could also refer to the macro defined here
46  --> $DIR/restricted-shadowing-legacy.rs:135:9
47   |
48LL |         macro_rules! m { () => {} }
49   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
50...
51LL | include!();
52   | ----------- in this macro invocation
53   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
54
55error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
56  --> $DIR/restricted-shadowing-legacy.rs:148:9
57   |
58LL |         m!();
59   |         ^ ambiguous name
60...
61LL | include!();
62   | ----------- in this macro invocation
63   |
64note: `m` could refer to the macro defined here
65  --> $DIR/restricted-shadowing-legacy.rs:88:9
66   |
67LL |         macro_rules! m { () => { Right } }
68   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
69...
70LL | include!();
71   | ----------- in this macro invocation
72note: `m` could also refer to the macro defined here
73  --> $DIR/restricted-shadowing-legacy.rs:144:9
74   |
75LL |         macro_rules! m { () => {} }
76   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
77...
78LL | include!();
79   | ----------- in this macro invocation
80   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
81
82error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
83  --> $DIR/restricted-shadowing-legacy.rs:164:9
84   |
85LL |         m!();
86   |         ^ ambiguous name
87...
88LL | include!();
89   | ----------- in this macro invocation
90   |
91note: `m` could refer to the macro defined here
92  --> $DIR/restricted-shadowing-legacy.rs:88:9
93   |
94LL |         macro_rules! m { () => { Right } }
95   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
96...
97LL | include!();
98   | ----------- in this macro invocation
99note: `m` could also refer to the macro defined here
100  --> $DIR/restricted-shadowing-legacy.rs:85:9
101   |
102LL |         macro_rules! m { () => { Wrong } }
103   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104...
105LL | include!();
106   | ----------- in this macro invocation
107   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
108
109error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
110  --> $DIR/restricted-shadowing-legacy.rs:180:13
111   |
112LL |             m!();
113   |             ^ ambiguous name
114...
115LL | include!();
116   | ----------- in this macro invocation
117   |
118note: `m` could refer to the macro defined here
119  --> $DIR/restricted-shadowing-legacy.rs:88:9
120   |
121LL |         macro_rules! m { () => { Right } }
122   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
123...
124LL | include!();
125   | ----------- in this macro invocation
126note: `m` could also refer to the macro defined here
127  --> $DIR/restricted-shadowing-legacy.rs:85:9
128   |
129LL |         macro_rules! m { () => { Wrong } }
130   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
131...
132LL | include!();
133   | ----------- in this macro invocation
134   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
135
136error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
137  --> $DIR/restricted-shadowing-legacy.rs:218:42
138   |
139LL |         macro_rules! gen_invoc { () => { m!() } }
140   |                                          ^ ambiguous name
141...
142LL | include!();
143   | ----------- in this macro invocation
144   |
145note: `m` could refer to the macro defined here
146  --> $DIR/restricted-shadowing-legacy.rs:88:9
147   |
148LL |         macro_rules! m { () => { Right } }
149   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
150...
151LL | include!();
152   | ----------- in this macro invocation
153note: `m` could also refer to the macro defined here
154  --> $DIR/restricted-shadowing-legacy.rs:85:9
155   |
156LL |         macro_rules! m { () => { Wrong } }
157   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
158...
159LL | include!();
160   | ----------- in this macro invocation
161   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
162
163error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
164  --> $DIR/restricted-shadowing-legacy.rs:232:9
165   |
166LL |         m!();
167   |         ^ ambiguous name
168...
169LL | include!();
170   | ----------- in this macro invocation
171   |
172note: `m` could refer to the macro defined here
173  --> $DIR/restricted-shadowing-legacy.rs:88:9
174   |
175LL |         macro_rules! m { () => { Right } }
176   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
177...
178LL | include!();
179   | ----------- in this macro invocation
180note: `m` could also refer to the macro defined here
181  --> $DIR/restricted-shadowing-legacy.rs:227:13
182   |
183LL |             macro_rules! m { () => {} }
184   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
185...
186LL | include!();
187   | ----------- in this macro invocation
188   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
189
190error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
191  --> $DIR/restricted-shadowing-legacy.rs:262:42
192   |
193LL |         macro_rules! gen_invoc { () => { m!() } }
194   |                                          ^ ambiguous name
195...
196LL | include!();
197   | ----------- in this macro invocation
198   |
199note: `m` could refer to the macro defined here
200  --> $DIR/restricted-shadowing-legacy.rs:88:9
201   |
202LL |         macro_rules! m { () => { Right } }
203   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
204...
205LL | include!();
206   | ----------- in this macro invocation
207note: `m` could also refer to the macro defined here
208  --> $DIR/restricted-shadowing-legacy.rs:257:13
209   |
210LL |             macro_rules! m { () => {} }
211   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
212...
213LL | include!();
214   | ----------- in this macro invocation
215   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
216
217error: aborting due to 8 previous errors
218
219For more information about this error, try `rustc --explain E0659`.