diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-11-25 12:35:30 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-11-25 13:30:52 -0800 |
| commit | 5ef47160e84c82b86ee96f41cf40477855c2c5c0 (patch) | |
| tree | 76d3b1fc88c89fcfc1c40a2f20a40f36f7f230aa /src/librustc_passes | |
| parent | 3893d16341b966df1e1a0acf80cfd00d6159057f (diff) | |
| download | rust-5ef47160e84c82b86ee96f41cf40477855c2c5c0.tar.gz rust-5ef47160e84c82b86ee96f41cf40477855c2c5c0.zip | |
Tweak bad `continue` error
Diffstat (limited to 'src/librustc_passes')
| -rw-r--r-- | src/librustc_passes/loops.rs | 4 |
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(); } } |
