about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTaylor Cramer <cramertaylorj@gmail.com>2017-02-22 18:10:37 -0800
committerTaylor Cramer <cramertaylorj@gmail.com>2017-02-22 18:10:37 -0800
commit6f0447b52bdbe1bc54902816078f3dbef4426515 (patch)
tree3414bd7c3c8fcb0397135c0ef24a9cbe461b7f27
parenta611bbcceb15ca6d191dbbb2436da92677d0ca99 (diff)
downloadrust-6f0447b52bdbe1bc54902816078f3dbef4426515.tar.gz
rust-6f0447b52bdbe1bc54902816078f3dbef4426515.zip
Change break or continue with no label to error nmbr 590
-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))