diff --git a/CHANGELOG.md b/CHANGELOG.md index ea8af2ee0e90..ffa7f89eb50c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Change Log All notable changes to this project will be documented in this file. +## 0.0.179 +* Rustup to *rustc 1.25.0-nightly (61452e506 2018-01-09)* + ## 0.0.178 * Rustup to *rustc 1.25.0-nightly (ee220daca 2018-01-07)* diff --git a/Cargo.toml b/Cargo.toml index 320f5cd22200..701c27bf26db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clippy" -version = "0.0.178" +version = "0.0.179" authors = [ "Manish Goregaokar ", "Andre Bogus ", @@ -37,7 +37,7 @@ path = "src/driver.rs" [dependencies] # begin automatic update -clippy_lints = { version = "0.0.178", path = "clippy_lints" } +clippy_lints = { version = "0.0.179", path = "clippy_lints" } # end automatic update cargo_metadata = "0.2" regex = "0.2" diff --git a/clippy_lints/Cargo.toml b/clippy_lints/Cargo.toml index d83747852e83..2d5038abd6ba 100644 --- a/clippy_lints/Cargo.toml +++ b/clippy_lints/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "clippy_lints" # begin automatic update -version = "0.0.178" +version = "0.0.179" # end automatic update authors = [ "Manish Goregaokar ", diff --git a/clippy_lints/src/needless_update.rs b/clippy_lints/src/needless_update.rs index d6624411e2f7..5512a2092b45 100644 --- a/clippy_lints/src/needless_update.rs +++ b/clippy_lints/src/needless_update.rs @@ -35,7 +35,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass { if let ExprStruct(_, ref fields, Some(ref base)) = expr.node { let ty = cx.tables.expr_ty(expr); if let ty::TyAdt(def, _) = ty.sty { - if fields.len() == def.struct_variant().fields.len() { + if fields.len() == def.non_enum_variant().fields.len() { span_lint( cx, NEEDLESS_UPDATE,