Fix clippy with latest Rust nightly.

This commit is contained in:
Robert Clipsham 2015-12-05 12:25:04 +00:00
parent dc414e6c02
commit 978c41584f
3 changed files with 3 additions and 2 deletions

View 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>",

View 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);

View file

@ -29,6 +29,7 @@ fn expr(n: Expr_) -> Expr {
id: 1,
node: n,
span: COMMAND_LINE_SP,
attrs: None
}
}