fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
8.5 KiB300 linesraw
1warning: label name `'x` shadows a label name that is already in scope
2  --> $DIR/hygienic-labels.rs:13: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:54: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:54: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:13: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:13: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:13:9
57   |
58LL |         'x: loop { $e }
59   |         ^^ lifetime 'x already in scope
60...
61LL |     'x: loop {
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.rs:63: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:63: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:63: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:63: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:38: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:38: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:38: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:38: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:38: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
159...
160LL |         while_x!(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.rs:73:5
165   |
166LL |     'x: for _ in 0..1 {
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.rs:73:5
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.rs:73:5
183   |
184LL |     'x: loop {
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.rs:73:5
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.rs:73:5
201   |
202LL |     'x: while 1 + 1 == 2 {
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.rs:73:5
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.rs:24:9
219   |
220LL |         'x: for _ in 0..1 { $e }
221   |         ^^ lifetime 'x already in scope
222...
223LL |     'x: for _ in 0..1 {
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.rs:24: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.rs:24:9
243   |
244LL |         'x: for _ in 0..1 { $e }
245   |         ^^ lifetime 'x already in scope
246...
247LL |     'x: loop {
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.rs:24: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.rs:24:9
267   |
268LL |         'x: for _ in 0..1 { $e }
269   |         ^^ lifetime 'x already in scope
270...
271LL |     'x: while 1 + 1 == 2 {
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.rs:24:9
279   |
280LL |         'x: for _ in 0..1 { $e }
281   |         ^^ lifetime 'x already in scope
282...
283LL |         'x: while 1 + 1 == 2 { $e }
284   |         -- first declared here
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.rs:24: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