fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

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