]> git.lizzy.rs Git - rust.git/commitdiff
Merge pull request #2413 from flip1995/assign_ops
authorOliver Schneider <oli-obk@users.noreply.github.com>
Tue, 30 Jan 2018 18:17:38 +0000 (19:17 +0100)
committerGitHub <noreply@github.com>
Tue, 30 Jan 2018 18:17:38 +0000 (19:17 +0100)
Improved suggestion on misrefactored_assign_op lint

CHANGELOG.md
Cargo.toml
clippy_lints/Cargo.toml
clippy_lints/src/lib.rs

index 1e3f01028666865f90fa2188ac014852f92bbd2f..288cc8bb02cbca88de63259e131a8d88fd7a5189 100644 (file)
@@ -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
index 7b0b93fcda0829b3c87ca5d12c67632624c46abb..a87afab231955a370bea388abc1c45b0a8577386 100644 (file)
@@ -1,6 +1,6 @@
 [package]
 name = "clippy"
-version = "0.0.183"
+version = "0.0.184"
 authors = [
        "Manish Goregaokar <manishsmail@gmail.com>",
        "Andre Bogus <bogusandre@gmail.com>",
@@ -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"
index 51d5bcafb7e62ac7abf7519b64eed7467ba5fe07..60e7a7b28df7d41843302500bcf3de50d8f26ada 100644 (file)
@@ -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 <manishsmail@gmail.com>",
index 836d4531a927325fae8024512d109d6e152240cf..25fb171720f6f19089a96295bc5cb3176128c8ed 100644 (file)
@@ -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,