mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Fix clippy with latest Rust nightly.
This commit is contained in:
parent
dc414e6c02
commit
978c41584f
3 changed files with 3 additions and 2 deletions
|
@ -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…
Reference in a new issue