Skip to content

Commit

Permalink
Rustup to rustc 1.12.0-nightly (1225e12 2016-07-30)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarton committed Jul 31, 2016
1 parent 04c8108 commit 30ec2c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/unused_label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ impl LintPass for UnusedLabel {
}

impl LateLintPass for UnusedLabel {
fn check_fn(&mut self, cx: &LateContext, kind: FnKind, decl: &hir::FnDecl, body: &hir::Block, span: Span, _: ast::NodeId) {
fn check_fn(&mut self, cx: &LateContext, kind: FnKind, decl: &hir::FnDecl, body: &hir::Block, span: Span, fn_id: ast::NodeId) {
if in_macro(cx, span) {
return;
}

let mut v = UnusedLabelVisitor::new();
walk_fn(&mut v, kind, decl, body, span);
walk_fn(&mut v, kind, decl, body, span, fn_id);

for (label, span) in v.labels {
span_lint(cx, UNUSED_LABEL, span, &format!("unused label `{}`", label));
Expand Down

0 comments on commit 30ec2c4

Please sign in to comment.