about summary refs log tree commit diff
path: root/src/librustc_passes
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-11-25 12:35:30 -0800
committerEsteban Küber <esteban@kuber.com.ar>2019-11-25 13:30:52 -0800
commit5ef47160e84c82b86ee96f41cf40477855c2c5c0 (patch)
tree76d3b1fc88c89fcfc1c40a2f20a40f36f7f230aa /src/librustc_passes
parent3893d16341b966df1e1a0acf80cfd00d6159057f (diff)
downloadrust-5ef47160e84c82b86ee96f41cf40477855c2c5c0.tar.gz
rust-5ef47160e84c82b86ee96f41cf40477855c2c5c0.zip
Tweak bad `continue` error
Diffstat (limited to 'src/librustc_passes')
-rw-r--r--src/librustc_passes/loops.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_passes/loops.rs b/src/librustc_passes/loops.rs
index 6140d0438d8..50f0d66b5e3 100644
--- a/src/librustc_passes/loops.rs
+++ b/src/librustc_passes/loops.rs
@@ -144,8 +144,8 @@ impl<'a, 'hir> Visitor<'hir> for CheckLoopVisitor<'a, 'hir> {
                                             "`continue` pointing to a labeled block")
                                 .span_label(e.span,
                                             "labeled blocks cannot be `continue`'d")
-                                .span_note(block.span,
-                                            "labeled block the continue points to")
+                                .span_label(block.span,
+                                            "labeled block the `continue` points to")
                                 .emit();
                         }
                     }