From: Oliver Schneider Date: Tue, 30 Jan 2018 18:17:38 +0000 (+0100) Subject: Merge pull request #2413 from flip1995/assign_ops X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=ee8d32850d1c32aaa593ca9e42e127cfa88ec9c9;hp=bd421cb5a5937ce42ddddd392ec743c8154f5d56;p=rust.git Merge pull request #2413 from flip1995/assign_ops Improved suggestion on misrefactored_assign_op lint --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e3f0102866..288cc8bb02c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Change Log All notable changes to this project will be documented in this file. +## 0.0.184 +* Rustup to *rustc 1.25.0-nightly (90eb44a58 2018-01-29)* +* New lints: [`double_comparisons`], [`empty_line_after_outer_attr`] + ## 0.0.183 * Rustup to *rustc 1.25.0-nightly (21882aad7 2018-01-28)* * New lint: [`misaligned_transmute`] @@ -554,6 +558,7 @@ All notable changes to this project will be documented in this file. [`derive_hash_xor_eq`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#derive_hash_xor_eq [`diverging_sub_expression`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#diverging_sub_expression [`doc_markdown`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#doc_markdown +[`double_comparisons`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#double_comparisons [`double_neg`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#double_neg [`double_parens`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#double_parens [`drop_copy`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#drop_copy @@ -561,6 +566,7 @@ All notable changes to this project will be documented in this file. [`duplicate_underscore_argument`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#duplicate_underscore_argument [`else_if_without_else`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#else_if_without_else [`empty_enum`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#empty_enum +[`empty_line_after_outer_attr`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [`empty_loop`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#empty_loop [`enum_clike_unportable_variant`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#enum_clike_unportable_variant [`enum_glob_use`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#enum_glob_use diff --git a/Cargo.toml b/Cargo.toml index 7b0b93fcda0..a87afab2319 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clippy" -version = "0.0.183" +version = "0.0.184" authors = [ "Manish Goregaokar ", "Andre Bogus ", @@ -37,7 +37,7 @@ path = "src/driver.rs" [dependencies] # begin automatic update -clippy_lints = { version = "0.0.183", path = "clippy_lints" } +clippy_lints = { version = "0.0.184", 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 51d5bcafb7e..60e7a7b28df 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.183" +version = "0.0.184" # end automatic update authors = [ "Manish Goregaokar ", diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index 836d4531a92..25fb171720f 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -438,9 +438,9 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) { assign_ops::ASSIGN_OP_PATTERN, assign_ops::MISREFACTORED_ASSIGN_OP, attrs::DEPRECATED_SEMVER, + attrs::EMPTY_LINE_AFTER_OUTER_ATTR, attrs::INLINE_ALWAYS, attrs::USELESS_ATTRIBUTE, - attrs::EMPTY_LINE_AFTER_OUTER_ATTR, bit_mask::BAD_BIT_MASK, bit_mask::INEFFECTIVE_BIT_MASK, bit_mask::VERBOSE_BIT_MASK, @@ -458,6 +458,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) { derive::DERIVE_HASH_XOR_EQ, derive::EXPL_IMPL_CLONE_ON_COPY, doc::DOC_MARKDOWN, + double_comparison::DOUBLE_COMPARISONS, double_parens::DOUBLE_PARENS, drop_forget_ref::DROP_COPY, drop_forget_ref::DROP_REF,