about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc_passes/diagnostics.rs2
-rw-r--r--src/librustc_passes/loops.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_passes/diagnostics.rs b/src/librustc_passes/diagnostics.rs
index c576b35cb17..5f06eadb84a 100644
--- a/src/librustc_passes/diagnostics.rs
+++ b/src/librustc_passes/diagnostics.rs
@@ -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.
 
diff --git a/src/librustc_passes/loops.rs b/src/librustc_passes/loops.rs
index 003142f3498..b2d51be5bf7 100644
--- a/src/librustc_passes/loops.rs
+++ b/src/librustc_passes/loops.rs
@@ -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))