]> git.lizzy.rs Git - rust.git/commitdiff
Rustup to rustc 1.12.0-nightly (1225e122f 2016-07-30)
authormcarton <cartonmartin+git@gmail.com>
Sun, 31 Jul 2016 17:22:07 +0000 (19:22 +0200)
committermcarton <cartonmartin+git@gmail.com>
Sun, 31 Jul 2016 17:22:07 +0000 (19:22 +0200)
clippy_lints/src/unused_label.rs

index a97b593095f293b6c2868239531f9eedd0d377ce..0c8233478b6812246a8d90c83f80b2ebeeced7ce 100644 (file)
@@ -47,13 +47,13 @@ fn get_lints(&self) -> LintArray {
 }
 
 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));