]> git.lizzy.rs Git - rust.git/commitdiff
Fix clippy with latest Rust nightly.
authorRobert Clipsham <robert@octarineparrot.com>
Sat, 5 Dec 2015 12:25:04 +0000 (12:25 +0000)
committerRobert Clipsham <robert@octarineparrot.com>
Sat, 5 Dec 2015 12:33:58 +0000 (12:33 +0000)
Cargo.toml
src/shadow.rs
tests/consts.rs

index c86b7b7d5229ec0f63094221a2d3e6420f45fba8..4ae56d791f5af9774bf1ba9841736cf116874725 100644 (file)
@@ -1,6 +1,6 @@
 [package]
 name = "clippy"
-version = "0.0.28"
+version = "0.0.29"
 authors = [
        "Manish Goregaokar <manishsmail@gmail.com>",
        "Andre Bogus <bogusandre@gmail.com>",
index 5fb27f75c3ce4f067b51424167d77c08b966912b..2c68667fc32d55bee77d1a8a2ca819d34b49700d 100644 (file)
@@ -62,7 +62,7 @@ fn check_decl(cx: &LateContext, decl: &Decl, bindings: &mut Vec<(Name, Span)>) {
     if in_external_macro(cx, decl.span) { return; }
     if is_from_for_desugar(decl) { return; }
     if let DeclLocal(ref local) = decl.node {
-        let Local{ ref pat, ref ty, ref init, id: _, span } = **local;
+        let Local{ ref pat, ref ty, ref init, id: _, span, attrs: _ } = **local;
         if let Some(ref t) = *ty { check_ty(cx, t, bindings) }
         if let Some(ref o) = *init {
             check_expr(cx, o, bindings);
index 66a7953994bfcec81b0948159df77951223a2749..5ddcd6df7b872667759029fcef53e847068366ac 100644 (file)
@@ -29,6 +29,7 @@ fn expr(n: Expr_) -> Expr {
         id: 1,
         node: n,
         span: COMMAND_LINE_SP,
+        attrs: None
     }
 }