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
9.1 KiB300 linesraw
1warning: label name `'x` shadows a label name that is already in scope
2  --> $DIR/hygienic-labels-in-let.rs:16:9
3   |
4LL |         'x: loop { $e }
5   |         ^^ lifetime 'x already in scope
6...
7LL |         'x: loop {
8   |         -- first declared here
9LL |             // this 'x should refer to the outer loop, lexically
10LL |             loop_x!(break 'x);
11   |             ------------------ in this macro invocation
12
13warning: label name `'x` shadows a label name that is already in scope
14  --> $DIR/hygienic-labels-in-let.rs:64:9
15   |
16LL |         'x: loop {
17   |         -- first declared here
18...
19LL |         'x: for _ in 0..1 {
20   |         ^^ lifetime 'x already in scope
21
22warning: label name `'x` shadows a label name that is already in scope
23  --> $DIR/hygienic-labels-in-let.rs:64:9
24   |
25LL |         'x: loop { $e }
26   |         -- first declared here
27...
28LL |         'x: for _ in 0..1 {
29   |         ^^ lifetime 'x already in scope
30
31warning: label name `'x` shadows a label name that is already in scope
32  --> $DIR/hygienic-labels-in-let.rs:16:9
33   |
34LL |         'x: loop { $e }
35   |         ^^ lifetime 'x already in scope
36...
37LL |         'x: loop {
38   |         -- first declared here
39...
40LL |             loop_x!(break 'x);
41   |             ------------------ in this macro invocation
42
43warning: label name `'x` shadows a label name that is already in scope
44  --> $DIR/hygienic-labels-in-let.rs:16:9
45   |
46LL |         'x: loop { $e }
47   |         ^^
48   |         |
49   |         first declared here
50   |         lifetime 'x already in scope
51...
52LL |             loop_x!(break 'x);
53   |             ------------------ in this macro invocation
54
55warning: label name `'x` shadows a label name that is already in scope
56  --> $DIR/hygienic-labels-in-let.rs:16:9
57   |
58LL |         'x: loop { $e }
59   |         ^^ lifetime 'x already in scope
60...
61LL |         'x: for _ in 0..1 {
62   |         -- first declared here
63...
64LL |             loop_x!(break 'x);
65   |             ------------------ in this macro invocation
66
67warning: label name `'x` shadows a label name that is already in scope
68  --> $DIR/hygienic-labels-in-let.rs:76:9
69   |
70LL |         'x: loop {
71   |         -- first declared here
72...
73LL |         'x: for _ in 0..1 {
74   |         ^^ lifetime 'x already in scope
75
76warning: label name `'x` shadows a label name that is already in scope
77  --> $DIR/hygienic-labels-in-let.rs:76:9
78   |
79LL |         'x: loop { $e }
80   |         -- first declared here
81...
82LL |         'x: for _ in 0..1 {
83   |         ^^ lifetime 'x already in scope
84
85warning: label name `'x` shadows a label name that is already in scope
86  --> $DIR/hygienic-labels-in-let.rs:76:9
87   |
88LL |         'x: for _ in 0..1 {
89   |         -- first declared here
90...
91LL |         'x: for _ in 0..1 {
92   |         ^^ lifetime 'x already in scope
93
94warning: label name `'x` shadows a label name that is already in scope
95  --> $DIR/hygienic-labels-in-let.rs:76:9
96   |
97LL |         'x: loop { $e }
98   |         -- first declared here
99...
100LL |         'x: for _ in 0..1 {
101   |         ^^ lifetime 'x already in scope
102
103warning: label name `'x` shadows a label name that is already in scope
104  --> $DIR/hygienic-labels-in-let.rs:27:9
105   |
106LL |         'x: while 1 + 1 == 2 { $e }
107   |         ^^ lifetime 'x already in scope
108...
109LL |         'x: loop {
110   |         -- first declared here
111...
112LL |             while_true!(break 'x);
113   |             ---------------------- in this macro invocation
114
115warning: label name `'x` shadows a label name that is already in scope
116  --> $DIR/hygienic-labels-in-let.rs:27:9
117   |
118LL |         'x: loop { $e }
119   |         -- first declared here
120...
121LL |         'x: while 1 + 1 == 2 { $e }
122   |         ^^ lifetime 'x already in scope
123...
124LL |             while_true!(break 'x);
125   |             ---------------------- in this macro invocation
126
127warning: label name `'x` shadows a label name that is already in scope
128  --> $DIR/hygienic-labels-in-let.rs:27:9
129   |
130LL |         'x: while 1 + 1 == 2 { $e }
131   |         ^^ lifetime 'x already in scope
132...
133LL |         'x: for _ in 0..1 {
134   |         -- first declared here
135...
136LL |             while_true!(break 'x);
137   |             ---------------------- in this macro invocation
138
139warning: label name `'x` shadows a label name that is already in scope
140  --> $DIR/hygienic-labels-in-let.rs:27:9
141   |
142LL |         'x: loop { $e }
143   |         -- first declared here
144...
145LL |         'x: while 1 + 1 == 2 { $e }
146   |         ^^ lifetime 'x already in scope
147...
148LL |             while_true!(break 'x);
149   |             ---------------------- in this macro invocation
150
151warning: label name `'x` shadows a label name that is already in scope
152  --> $DIR/hygienic-labels-in-let.rs:27:9
153   |
154LL |         'x: while 1 + 1 == 2 { $e }
155   |         ^^ lifetime 'x already in scope
156...
157LL |         'x: for _ in 0..1 {
158   |         -- first declared here
159...
160LL |             while_true!(break 'x);
161   |             ---------------------- in this macro invocation
162
163warning: label name `'x` shadows a label name that is already in scope
164  --> $DIR/hygienic-labels-in-let.rs:90:9
165   |
166LL |         'x: loop {
167   |         -- first declared here
168...
169LL |         'x: for _ in 0..1 {
170   |         ^^ lifetime 'x already in scope
171
172warning: label name `'x` shadows a label name that is already in scope
173  --> $DIR/hygienic-labels-in-let.rs:90:9
174   |
175LL |         'x: loop { $e }
176   |         -- first declared here
177...
178LL |         'x: for _ in 0..1 {
179   |         ^^ lifetime 'x already in scope
180
181warning: label name `'x` shadows a label name that is already in scope
182  --> $DIR/hygienic-labels-in-let.rs:90:9
183   |
184LL |         'x: for _ in 0..1 {
185   |         -- first declared here
186...
187LL |         'x: for _ in 0..1 {
188   |         ^^ lifetime 'x already in scope
189
190warning: label name `'x` shadows a label name that is already in scope
191  --> $DIR/hygienic-labels-in-let.rs:90:9
192   |
193LL |         'x: loop { $e }
194   |         -- first declared here
195...
196LL |         'x: for _ in 0..1 {
197   |         ^^ lifetime 'x already in scope
198
199warning: label name `'x` shadows a label name that is already in scope
200  --> $DIR/hygienic-labels-in-let.rs:90:9
201   |
202LL |         'x: for _ in 0..1 {
203   |         -- first declared here
204...
205LL |         'x: for _ in 0..1 {
206   |         ^^ lifetime 'x already in scope
207
208warning: label name `'x` shadows a label name that is already in scope
209  --> $DIR/hygienic-labels-in-let.rs:90:9
210   |
211LL |         'x: while 1 + 1 == 2 { $e }
212   |         -- first declared here
213...
214LL |         'x: for _ in 0..1 {
215   |         ^^ lifetime 'x already in scope
216
217warning: label name `'x` shadows a label name that is already in scope
218  --> $DIR/hygienic-labels-in-let.rs:39:9
219   |
220LL |         'x: for _ in 0..1 { $e }
221   |         ^^ lifetime 'x already in scope
222...
223LL |         'x: loop {
224   |         -- first declared here
225...
226LL |             run_once!(continue 'x);
227   |             ----------------------- in this macro invocation
228
229warning: label name `'x` shadows a label name that is already in scope
230  --> $DIR/hygienic-labels-in-let.rs:39:9
231   |
232LL |         'x: loop { $e }
233   |         -- first declared here
234...
235LL |         'x: for _ in 0..1 { $e }
236   |         ^^ lifetime 'x already in scope
237...
238LL |             run_once!(continue 'x);
239   |             ----------------------- in this macro invocation
240
241warning: label name `'x` shadows a label name that is already in scope
242  --> $DIR/hygienic-labels-in-let.rs:39:9
243   |
244LL |         'x: for _ in 0..1 { $e }
245   |         ^^ lifetime 'x already in scope
246...
247LL |         'x: for _ in 0..1 {
248   |         -- first declared here
249...
250LL |             run_once!(continue 'x);
251   |             ----------------------- in this macro invocation
252
253warning: label name `'x` shadows a label name that is already in scope
254  --> $DIR/hygienic-labels-in-let.rs:39:9
255   |
256LL |         'x: loop { $e }
257   |         -- first declared here
258...
259LL |         'x: for _ in 0..1 { $e }
260   |         ^^ lifetime 'x already in scope
261...
262LL |             run_once!(continue 'x);
263   |             ----------------------- in this macro invocation
264
265warning: label name `'x` shadows a label name that is already in scope
266  --> $DIR/hygienic-labels-in-let.rs:39:9
267   |
268LL |         'x: for _ in 0..1 { $e }
269   |         ^^ lifetime 'x already in scope
270...
271LL |         'x: for _ in 0..1 {
272   |         -- first declared here
273...
274LL |             run_once!(continue 'x);
275   |             ----------------------- in this macro invocation
276
277warning: label name `'x` shadows a label name that is already in scope
278  --> $DIR/hygienic-labels-in-let.rs:39:9
279   |
280LL |         'x: while 1 + 1 == 2 { $e }
281   |         -- first declared here
282...
283LL |         'x: for _ in 0..1 { $e }
284   |         ^^ lifetime 'x already in scope
285...
286LL |             run_once!(continue 'x);
287   |             ----------------------- in this macro invocation
288
289warning: label name `'x` shadows a label name that is already in scope
290  --> $DIR/hygienic-labels-in-let.rs:39:9
291   |
292LL |         'x: for _ in 0..1 { $e }
293   |         ^^ lifetime 'x already in scope
294...
295LL |         'x: for _ in 0..1 {
296   |         -- first declared here
297...
298LL |             run_once!(continue 'x);
299   |             ----------------------- in this macro invocation
300