Merge pull request #480 from mrmonday/nightly-fixes
Fix clippy with latest Rust nightly.
This commit is contained in:
commit
b660bfa09e
@ -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>",
|
||||
|
@ -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);
|
||||
|
@ -29,6 +29,7 @@ fn expr(n: Expr_) -> Expr {
|
||||
id: 1,
|
||||
node: n,
|
||||
span: COMMAND_LINE_SP,
|
||||
attrs: None
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user