]> git.lizzy.rs Git - rust.git/commitdiff
Merge pull request #2399 from rust-lang-nursery/rustup
authorOliver Schneider <oli-obk@users.noreply.github.com>
Thu, 25 Jan 2018 08:02:05 +0000 (09:02 +0100)
committerGitHub <noreply@github.com>
Thu, 25 Jan 2018 08:02:05 +0000 (09:02 +0100)
Rustup to rustc 1.25.0-nightly (a0dcecff9 2018-01-24)

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

index c202f256e3b8fce2cba1a3624cd26de4b3f785f8..6140de473a05034f6e009d86d908496d915680d5 100644 (file)
@@ -1,6 +1,10 @@
 # Change Log
 All notable changes to this project will be documented in this file.
 
+## 0.0.182
+* Rustup to *rustc 1.25.0-nightly (a0dcecff9 2018-01-24)*
+* New lint: [`decimal_literal_representation`]
+
 ## 0.0.181
 * Rustup to *rustc 1.25.0-nightly (97520ccb1 2018-01-21)*
 * New lints: [`else_if_without_else`], [`option_option`], [`unit_arg`], [`unnecessary_fold`]
@@ -540,6 +544,7 @@ All notable changes to this project will be documented in this file.
 [`const_static_lifetime`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#const_static_lifetime
 [`crosspointer_transmute`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#crosspointer_transmute
 [`cyclomatic_complexity`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#cyclomatic_complexity
+[`decimal_literal_representation`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#decimal_literal_representation
 [`deprecated_semver`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#deprecated_semver
 [`deref_addrof`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#deref_addrof
 [`derive_hash_xor_eq`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#derive_hash_xor_eq
index 23147c6e7072b2668c7656be1a4edea759929b11..c285dd10140aef291a16d591d71a95ba59741fed 100644 (file)
@@ -1,6 +1,6 @@
 [package]
 name = "clippy"
-version = "0.0.181"
+version = "0.0.182"
 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.181", path = "clippy_lints" }
+clippy_lints = { version = "0.0.182", path = "clippy_lints" }
 # end automatic update
 cargo_metadata = "0.2"
 regex = "0.2"
index 380fc1369ba3c10dfa1fbaa2491733bb45e31a38..1616b6f1ef083c3ad0721601999034bf3437af9f 100644 (file)
@@ -1,7 +1,7 @@
 [package]
 name = "clippy_lints"
 # begin automatic update
-version = "0.0.181"
+version = "0.0.182"
 # end automatic update
 authors = [
        "Manish Goregaokar <manishsmail@gmail.com>",
index 9aa43653ab5f86a76cd4373498d9fd14b2538c2a..c00cdc07f84327e0c9ff07d7027f6445621c973a 100644 (file)
@@ -12,7 +12,8 @@
 /// an enumeration variant, rather than importing variants.
 ///
 /// **Known problems:** Old-style enumerations that prefix the variants are
-/// still around.
+/// still around. May cause problems with modules that are not snake_case (see
+/// [#2397](https://github.com/rust-lang-nursery/rust-clippy/issues/2397))
 ///
 /// **Example:**
 /// ```rust
index 037b9f827292c292eb1546aec6c40db4e13b6abf..3920b7e6c6887e81d9b3dfa4d48a19fab5e333e6 100644 (file)
@@ -490,10 +490,10 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
         let_if_seq::USELESS_LET_IF_SEQ,
         lifetimes::NEEDLESS_LIFETIMES,
         lifetimes::UNUSED_LIFETIMES,
+        literal_representation::DECIMAL_LITERAL_REPRESENTATION,
         literal_representation::INCONSISTENT_DIGIT_GROUPING,
         literal_representation::LARGE_DIGIT_GROUPS,
         literal_representation::UNREADABLE_LITERAL,
-        literal_representation::DECIMAL_LITERAL_REPRESENTATION,
         loops::EMPTY_LOOP,
         loops::EXPLICIT_COUNTER_LOOP,
         loops::EXPLICIT_INTO_ITER_LOOP,
index 4e45525ed099296941e8e1738f2b9c416d0bd6ca..8ac0c4bf0982e28dab44d894866adbad3de44bdc 100644 (file)
@@ -296,7 +296,7 @@ fn check_expr(&mut self, cx: &EarlyContext, expr: &Expr) {
         }
         match expr.node {
             ExprKind::Call(ref paren, _) => if let ExprKind::Paren(ref closure) = paren.node {
-                if let ExprKind::Closure(_, ref decl, ref block, _) = closure.node {
+                if let ExprKind::Closure(_, _, ref decl, ref block, _) = closure.node {
                     span_lint_and_then(
                         cx,
                         REDUNDANT_CLOSURE_CALL,
@@ -327,7 +327,7 @@ fn check_block(&mut self, cx: &EarlyContext, block: &Block) {
             if_chain! {
                 if let StmtKind::Local(ref local) = w[0].node;
                 if let Option::Some(ref t) = local.init;
-                if let ExprKind::Closure(_, _, _, _) = t.node;
+                if let ExprKind::Closure(_, _, _, _, _) = t.node;
                 if let PatKind::Ident(_, sp_ident, _) = local.pat.node;
                 if let StmtKind::Semi(ref second) = w[1].node;
                 if let ExprKind::Assign(_, ref call) = second.node;