diff --git a/CHANGELOG.md b/CHANGELOG.md index d15b08016658..10de2fc4b23b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Change Log All notable changes to this project will be documented in this file. +## 0.0.80 — 2016-07-31 +* Rustup to *rustc 1.12.0-nightly (1225e122f 2016-07-30)* + ## 0.0.79 — 2016-07-10 * Rustup to *rustc 1.12.0-nightly (f93aaf84c 2016-07-09)* * Major suggestions refactoring diff --git a/Cargo.toml b/Cargo.toml index 9790937a3071..ffb3d949e291 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clippy" -version = "0.0.79" +version = "0.0.80" authors = [ "Manish Goregaokar ", "Andre Bogus ", @@ -25,7 +25,7 @@ test = false [dependencies] # begin automatic update -clippy_lints = { version = "0.0.79", path = "clippy_lints" } +clippy_lints = { version = "0.0.80", path = "clippy_lints" } # end automatic update [dev-dependencies] diff --git a/clippy_lints/Cargo.toml b/clippy_lints/Cargo.toml index 6f05b99a16f4..355def6fc08d 100644 --- a/clippy_lints/Cargo.toml +++ b/clippy_lints/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "clippy_lints" # begin automatic update -version = "0.0.79" +version = "0.0.80" # end automatic update authors = [ "Manish Goregaokar ", diff --git a/clippy_lints/src/unused_label.rs b/clippy_lints/src/unused_label.rs index a97b593095f2..0c8233478b68 100644 --- a/clippy_lints/src/unused_label.rs +++ b/clippy_lints/src/unused_label.rs @@ -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));