We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4de4e61 commit 167cedeCopy full SHA for 167cede
src/librustc_lint/unused.rs
@@ -496,7 +496,9 @@ impl EarlyLintPass for UnusedLabel {
496
self.0.push((label, false));
497
}
498
ast::ExprKind::Break(Some(label), _) | ast::ExprKind::Continue(Some(label)) => {
499
- if let Some((_, ref mut was_used)) = self.0.iter_mut().rev().find(|(l, _)| label == *l) {
+ if let Some((_, ref mut was_used)) =
500
+ self.0.iter_mut().rev().find(|(l, _)| label == *l)
501
+ {
502
*was_used = true;
503
504
@@ -515,7 +517,7 @@ impl EarlyLintPass for UnusedLabel {
515
517
ctxt.span_lint(UNUSED_LABEL, label.ident.span, "unused label");
516
518
519
- },
520
+ }
521
_ => {}
522
523
0 commit comments