fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
8.6 KiB299 linesraw
1warning: label name `'x` shadows a label name that is already in scope
2  --> $DIR/hygienic-labels.rs:12:9
3   |
4LL |         'x: loop { $e }
5   |         ^^ lifetime 'x already in scope
6...
7LL |     'x: for _ in 0..1 {
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.rs:37:5
15   |
16LL |     'x: for _ in 0..1 {
17   |     -- first declared here
18...
19LL |     'x: loop {
20   |     ^^ lifetime 'x already in scope
21
22warning: label name `'x` shadows a label name that is already in scope
23  --> $DIR/hygienic-labels.rs:37:5
24   |
25LL |         'x: loop { $e }
26   |         -- first declared here
27...
28LL |     'x: loop {
29   |     ^^ lifetime 'x already in scope
30
31warning: label name `'x` shadows a label name that is already in scope
32  --> $DIR/hygienic-labels.rs:12:9
33   |
34LL |         'x: loop { $e }
35   |         ^^ lifetime 'x already in scope
36...
37LL |     'x: for _ in 0..1 {
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.rs:12: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.rs:12:9
57   |
58LL |         'x: loop { $e }
59   |         ^^ lifetime 'x already in scope
60...
61LL |     'x: loop {
62   |     -- first declared here
63LL |         // ditto
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.rs:43:5
69   |
70LL |     'x: for _ in 0..1 {
71   |     -- first declared here
72...
73LL |     'x: while 1 + 1 == 2 {
74   |     ^^ lifetime 'x already in scope
75
76warning: label name `'x` shadows a label name that is already in scope
77  --> $DIR/hygienic-labels.rs:43:5
78   |
79LL |         'x: loop { $e }
80   |         -- first declared here
81...
82LL |     'x: while 1 + 1 == 2 {
83   |     ^^ lifetime 'x already in scope
84
85warning: label name `'x` shadows a label name that is already in scope
86  --> $DIR/hygienic-labels.rs:43:5
87   |
88LL |     'x: loop {
89   |     -- first declared here
90...
91LL |     'x: while 1 + 1 == 2 {
92   |     ^^ lifetime 'x already in scope
93
94warning: label name `'x` shadows a label name that is already in scope
95  --> $DIR/hygienic-labels.rs:43:5
96   |
97LL |         'x: loop { $e }
98   |         -- first declared here
99...
100LL |     'x: while 1 + 1 == 2 {
101   |     ^^ lifetime 'x already in scope
102
103warning: label name `'x` shadows a label name that is already in scope
104  --> $DIR/hygienic-labels.rs:26:9
105   |
106LL |         'x: while 1 + 1 == 2 { $e }
107   |         ^^ lifetime 'x already in scope
108...
109LL |     'x: for _ in 0..1 {
110   |     -- first declared here
111...
112LL |         while_x!(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.rs:26: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_x!(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.rs:26:9
129   |
130LL |         'x: while 1 + 1 == 2 { $e }
131   |         ^^ lifetime 'x already in scope
132...
133LL |     'x: loop {
134   |     -- first declared here
135...
136LL |         while_x!(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.rs:26: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_x!(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.rs:26:9
153   |
154LL |         'x: while 1 + 1 == 2 { $e }
155   |         ^^ lifetime 'x already in scope
156...
157LL |     'x: while 1 + 1 == 2 {
158   |     -- first declared here
159LL |         while_x!(break 'x);
160   |         ------------------- in this macro invocation
161
162warning: label name `'x` shadows a label name that is already in scope
163  --> $DIR/hygienic-labels.rs:48:5
164   |
165LL |     'x: for _ in 0..1 {
166   |     -- first declared here
167...
168LL |     'x: for _ in 0..1 {
169   |     ^^ lifetime 'x already in scope
170
171warning: label name `'x` shadows a label name that is already in scope
172  --> $DIR/hygienic-labels.rs:48:5
173   |
174LL |         'x: loop { $e }
175   |         -- first declared here
176...
177LL |     'x: for _ in 0..1 {
178   |     ^^ lifetime 'x already in scope
179
180warning: label name `'x` shadows a label name that is already in scope
181  --> $DIR/hygienic-labels.rs:48:5
182   |
183LL |     'x: loop {
184   |     -- first declared here
185...
186LL |     'x: for _ in 0..1 {
187   |     ^^ lifetime 'x already in scope
188
189warning: label name `'x` shadows a label name that is already in scope
190  --> $DIR/hygienic-labels.rs:48:5
191   |
192LL |         'x: loop { $e }
193   |         -- first declared here
194...
195LL |     'x: for _ in 0..1 {
196   |     ^^ lifetime 'x already in scope
197
198warning: label name `'x` shadows a label name that is already in scope
199  --> $DIR/hygienic-labels.rs:48:5
200   |
201LL |     'x: while 1 + 1 == 2 {
202   |     -- first declared here
203...
204LL |     'x: for _ in 0..1 {
205   |     ^^ lifetime 'x already in scope
206
207warning: label name `'x` shadows a label name that is already in scope
208  --> $DIR/hygienic-labels.rs:48:5
209   |
210LL |         'x: while 1 + 1 == 2 { $e }
211   |         -- first declared here
212...
213LL |     'x: for _ in 0..1 {
214   |     ^^ lifetime 'x already in scope
215
216warning: label name `'x` shadows a label name that is already in scope
217  --> $DIR/hygienic-labels.rs:19:9
218   |
219LL |         'x: for _ in 0..1 { $e }
220   |         ^^ lifetime 'x already in scope
221...
222LL |     'x: for _ in 0..1 {
223   |     -- first declared here
224...
225LL |         run_once!(continue 'x);
226   |         ----------------------- in this macro invocation
227
228warning: label name `'x` shadows a label name that is already in scope
229  --> $DIR/hygienic-labels.rs:19:9
230   |
231LL |         'x: loop { $e }
232   |         -- first declared here
233...
234LL |         'x: for _ in 0..1 { $e }
235   |         ^^ lifetime 'x already in scope
236...
237LL |         run_once!(continue 'x);
238   |         ----------------------- in this macro invocation
239
240warning: label name `'x` shadows a label name that is already in scope
241  --> $DIR/hygienic-labels.rs:19:9
242   |
243LL |         'x: for _ in 0..1 { $e }
244   |         ^^ lifetime 'x already in scope
245...
246LL |     'x: loop {
247   |     -- first declared here
248...
249LL |         run_once!(continue 'x);
250   |         ----------------------- in this macro invocation
251
252warning: label name `'x` shadows a label name that is already in scope
253  --> $DIR/hygienic-labels.rs:19:9
254   |
255LL |         'x: loop { $e }
256   |         -- first declared here
257...
258LL |         'x: for _ in 0..1 { $e }
259   |         ^^ lifetime 'x already in scope
260...
261LL |         run_once!(continue 'x);
262   |         ----------------------- in this macro invocation
263
264warning: label name `'x` shadows a label name that is already in scope
265  --> $DIR/hygienic-labels.rs:19:9
266   |
267LL |         'x: for _ in 0..1 { $e }
268   |         ^^ lifetime 'x already in scope
269...
270LL |     'x: while 1 + 1 == 2 {
271   |     -- first declared here
272...
273LL |         run_once!(continue 'x);
274   |         ----------------------- in this macro invocation
275
276warning: label name `'x` shadows a label name that is already in scope
277  --> $DIR/hygienic-labels.rs:19:9
278   |
279LL |         'x: for _ in 0..1 { $e }
280   |         ^^ lifetime 'x already in scope
281...
282LL |         'x: while 1 + 1 == 2 { $e }
283   |         -- first declared here
284...
285LL |         run_once!(continue 'x);
286   |         ----------------------- in this macro invocation
287
288warning: label name `'x` shadows a label name that is already in scope
289  --> $DIR/hygienic-labels.rs:19:9
290   |
291LL |         'x: for _ in 0..1 { $e }
292   |         ^^ lifetime 'x already in scope
293...
294LL |     'x: for _ in 0..1 {
295   |     -- first declared here
296LL |         // ditto
297LL |         run_once!(continue 'x);
298   |         ----------------------- in this macro invocation
299