Skip to content

Commit 6f0447b

Browse files
committed
Change break or continue with no label to error nmbr 590
1 parent a611bbc commit 6f0447b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_passes/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ match 5u32 {
242242
```
243243
"##,
244244

245-
E0583: r##"
245+
E0590: r##"
246246
`break` or `continue` must include a label when used in the condition of a
247247
`while` loop.
248248

src/librustc_passes/loops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ impl<'a, 'hir> CheckLoopVisitor<'a, 'hir> {
161161
}
162162

163163
fn emit_unlabled_cf_in_while_condition(&mut self, span: Span, cf_type: &str) {
164-
struct_span_err!(self.sess, span, E0583,
164+
struct_span_err!(self.sess, span, E0590,
165165
"`break` or `continue` with no label in the condition of a `while` loop")
166166
.span_label(span,
167167
&format!("unlabeled `{}` in the condition of a `while` loop", cf_type))

0 commit comments

Comments
 (0)