Skip to content

Commit

Permalink
Change break or continue with no label to error nmbr 590
Browse files Browse the repository at this point in the history
  • Loading branch information
cramertj committed Feb 23, 2017
1 parent a611bbc commit 6f0447b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc_passes/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ match 5u32 {
```
"##,

E0583: r##"
E0590: r##"
`break` or `continue` must include a label when used in the condition of a
`while` loop.
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_passes/loops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl<'a, 'hir> CheckLoopVisitor<'a, 'hir> {
}

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

0 comments on commit 6f0447b

Please sign in to comment.