@@ -35,47 +35,43 @@ LL | LOOP;
3535 | ^^^^ not found in this scope
3636
3737error[E0425]: cannot find value `LOOP` in this scope
38- --> $DIR/label_misspelled.rs:29 :15
38+ --> $DIR/label_misspelled.rs:28 :15
3939 |
4040LL | 'LOOP: loop {
4141 | ----- a label with a similar name exists
42- LL |
4342LL | break LOOP;
4443 | ^^^^
4544 | |
4645 | not found in this scope
4746 | help: use the similarly named label: `'LOOP`
4847
4948error[E0425]: cannot find value `while_loop` in this scope
50- --> $DIR/label_misspelled.rs:34 :15
49+ --> $DIR/label_misspelled.rs:32 :15
5150 |
5251LL | 'while_loop: while true {
5352 | ----------- a label with a similar name exists
54- LL |
5553LL | break while_loop;
5654 | ^^^^^^^^^^
5755 | |
5856 | not found in this scope
5957 | help: use the similarly named label: `'while_loop`
6058
6159error[E0425]: cannot find value `while_let` in this scope
62- --> $DIR/label_misspelled.rs:39 :15
60+ --> $DIR/label_misspelled.rs:36 :15
6361 |
6462LL | 'while_let: while let Some(_) = Some(()) {
6563 | ---------- a label with a similar name exists
66- LL |
6764LL | break while_let;
6865 | ^^^^^^^^^
6966 | |
7067 | not found in this scope
7168 | help: use the similarly named label: `'while_let`
7269
7370error[E0425]: cannot find value `for_loop` in this scope
74- --> $DIR/label_misspelled.rs:44 :15
71+ --> $DIR/label_misspelled.rs:40 :15
7572 |
7673LL | 'for_loop: for _ in 0..3 {
7774 | --------- a label with a similar name exists
78- LL |
7975LL | break for_loop;
8076 | ^^^^^^^^
8177 | |
@@ -120,62 +116,38 @@ warning: unused label
120116LL | 'LOOP: loop {
121117 | ^^^^^
122118
123- warning: unused label
124- --> $DIR/label_misspelled.rs:27:5
125- |
126- LL | 'LOOP: loop {
127- | ^^^^^
128-
129- warning: unused label
130- --> $DIR/label_misspelled.rs:32:5
131- |
132- LL | 'while_loop: while true {
133- | ^^^^^^^^^^^
134-
135119warning: denote infinite loops with `loop { ... }`
136- --> $DIR/label_misspelled.rs:32 :5
120+ --> $DIR/label_misspelled.rs:31 :5
137121 |
138122LL | 'while_loop: while true {
139123 | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `loop`
140124
141125warning: unused label
142- --> $DIR/label_misspelled.rs:37:5
143- |
144- LL | 'while_let: while let Some(_) = Some(()) {
145- | ^^^^^^^^^^
146-
147- warning: unused label
148- --> $DIR/label_misspelled.rs:42:5
149- |
150- LL | 'for_loop: for _ in 0..3 {
151- | ^^^^^^^^^
152-
153- warning: unused label
154- --> $DIR/label_misspelled.rs:51:5
126+ --> $DIR/label_misspelled.rs:47:5
155127 |
156128LL | 'while_loop: while true {
157129 | ^^^^^^^^^^^
158130
159131warning: denote infinite loops with `loop { ... }`
160- --> $DIR/label_misspelled.rs:51 :5
132+ --> $DIR/label_misspelled.rs:47 :5
161133 |
162134LL | 'while_loop: while true {
163135 | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `loop`
164136
165137warning: unused label
166- --> $DIR/label_misspelled.rs:56 :5
138+ --> $DIR/label_misspelled.rs:52 :5
167139 |
168140LL | 'while_let: while let Some(_) = Some(()) {
169141 | ^^^^^^^^^^
170142
171143warning: unused label
172- --> $DIR/label_misspelled.rs:61 :5
144+ --> $DIR/label_misspelled.rs:57 :5
173145 |
174146LL | 'for_loop: for _ in 0..3 {
175147 | ^^^^^^^^^
176148
177149error[E0571]: `break` with value from a `while` loop
178- --> $DIR/label_misspelled.rs:53 :9
150+ --> $DIR/label_misspelled.rs:49 :9
179151 |
180152LL | 'while_loop: while true {
181153 | ----------------------- you can't `break` with a value in a `while` loop
@@ -193,7 +165,7 @@ LL | break 'while_loop;
193165 | ^^^^^^^^^^^
194166
195167error[E0571]: `break` with value from a `while` loop
196- --> $DIR/label_misspelled.rs:58 :9
168+ --> $DIR/label_misspelled.rs:54 :9
197169 |
198170LL | 'while_let: while let Some(_) = Some(()) {
199171 | ---------------------------------------- you can't `break` with a value in a `while` loop
@@ -211,7 +183,7 @@ LL | break 'while_let;
211183 | ^^^^^^^^^^
212184
213185error[E0571]: `break` with value from a `for` loop
214- --> $DIR/label_misspelled.rs:63 :9
186+ --> $DIR/label_misspelled.rs:59 :9
215187 |
216188LL | 'for_loop: for _ in 0..3 {
217189 | ------------------------ you can't `break` with a value in a `for` loop
@@ -228,7 +200,7 @@ help: alternatively, you might have meant to use the available loop label
228200LL | break 'for_loop;
229201 | ^^^^^^^^^
230202
231- error: aborting due to 11 previous errors; 14 warnings emitted
203+ error: aborting due to 11 previous errors; 10 warnings emitted
232204
233205Some errors have detailed explanations: E0425, E0571.
234206For more information about an error, try `rustc --explain E0425`.
0 commit comments