]> git.lizzy.rs Git - rust.git/commitdiff
Merge pull request #1126 from Manishearth/rustup
authorOliver Schneider <oli-obk@users.noreply.github.com>
Mon, 1 Aug 2016 13:21:41 +0000 (15:21 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Aug 2016 13:21:41 +0000 (15:21 +0200)
 Rustup to rustc 1.12.0-nightly (1225e122f 2016-07-30)  and bump to 0.0.80

CHANGELOG.md
Cargo.toml
clippy_lints/Cargo.toml
clippy_lints/src/unused_label.rs

index d15b08016658f8580bbdfb811434ff2b2503dcb6..10de2fc4b23b26f249e6425fe386e6161b1492c2 100644 (file)
@@ -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
index 9790937a30719af3fc952f8a460b0a89cbc88ed0..ffb3d949e29172b7888ebfd7e4a82efabc909414 100644 (file)
@@ -1,6 +1,6 @@
 [package]
 name = "clippy"
-version = "0.0.79"
+version = "0.0.80"
 authors = [
        "Manish Goregaokar <manishsmail@gmail.com>",
        "Andre Bogus <bogusandre@gmail.com>",
@@ -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]
index 6f05b99a16f414d424e1216894ca89530e983caf..355def6fc08d9e0f0d1e5c0727c389d3833f2a40 100644 (file)
@@ -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 <manishsmail@gmail.com>",
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));