about summary refs log tree commit diff
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2020-01-31 10:42:31 +0100
committerflip1995 <hello@philkrones.com>2020-01-31 10:57:52 +0100
commit5ba4aa8ebab79ffff4cb621fa22a07d32ea41b1f (patch)
tree4772d79f2e2308e07035e5690ef606a00eec216f
parent006f07f090894f09910fe6f15e5a670a955f8166 (diff)
downloadrust-5ba4aa8ebab79ffff4cb621fa22a07d32ea41b1f.tar.gz
rust-5ba4aa8ebab79ffff4cb621fa22a07d32ea41b1f.zip
Move debug_assertions_with_mut_call to nursery
-rw-r--r--clippy_lints/src/lib.rs3
-rw-r--r--clippy_lints/src/mutable_debug_assertion.rs2
-rw-r--r--src/lintlist/mod.rs2
3 files changed, 3 insertions, 4 deletions
diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs
index 443a9c7e9d9..04239b797e3 100644
--- a/clippy_lints/src/lib.rs
+++ b/clippy_lints/src/lib.rs
@@ -1261,7 +1261,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
         LintId::of(&misc_early::ZERO_PREFIXED_LITERAL),
         LintId::of(&mut_key::MUTABLE_KEY_TYPE),
         LintId::of(&mut_reference::UNNECESSARY_MUT_PASSED),
-        LintId::of(&mutable_debug_assertion::DEBUG_ASSERT_WITH_MUT_CALL),
         LintId::of(&mutex_atomic::MUTEX_ATOMIC),
         LintId::of(&needless_bool::BOOL_COMPARISON),
         LintId::of(&needless_bool::NEEDLESS_BOOL),
@@ -1578,7 +1577,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
         LintId::of(&misc::FLOAT_CMP),
         LintId::of(&misc::MODULO_ONE),
         LintId::of(&mut_key::MUTABLE_KEY_TYPE),
-        LintId::of(&mutable_debug_assertion::DEBUG_ASSERT_WITH_MUT_CALL),
         LintId::of(&non_copy_const::BORROW_INTERIOR_MUTABLE_CONST),
         LintId::of(&non_copy_const::DECLARE_INTERIOR_MUTABLE_CONST),
         LintId::of(&open_options::NONSENSICAL_OPEN_OPTIONS),
@@ -1632,6 +1630,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
         LintId::of(&fallible_impl_from::FALLIBLE_IMPL_FROM),
         LintId::of(&missing_const_for_fn::MISSING_CONST_FOR_FN),
         LintId::of(&mul_add::MANUAL_MUL_ADD),
+        LintId::of(&mutable_debug_assertion::DEBUG_ASSERT_WITH_MUT_CALL),
         LintId::of(&mutex_atomic::MUTEX_INTEGER),
         LintId::of(&needless_borrow::NEEDLESS_BORROW),
         LintId::of(&path_buf_push_overwrite::PATH_BUF_PUSH_OVERWRITE),
diff --git a/clippy_lints/src/mutable_debug_assertion.rs b/clippy_lints/src/mutable_debug_assertion.rs
index 881f59bbabd..f0c5c95b1d4 100644
--- a/clippy_lints/src/mutable_debug_assertion.rs
+++ b/clippy_lints/src/mutable_debug_assertion.rs
@@ -28,7 +28,7 @@ declare_clippy_lint! {
     /// debug_assert!(take_a_mut_parameter(&mut 5));
     /// ```
     pub DEBUG_ASSERT_WITH_MUT_CALL,
-    correctness,
+    nursery,
     "mutable arguments in `debug_assert{,_ne,_eq}!`"
 }
 
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs
index 3edde70a27f..eaada9961b0 100644
--- a/src/lintlist/mod.rs
+++ b/src/lintlist/mod.rs
@@ -289,7 +289,7 @@ pub const ALL_LINTS: [Lint; 351] = [
     },
     Lint {
         name: "debug_assert_with_mut_call",
-        group: "correctness",
+        group: "nursery",
         desc: "mutable arguments in `debug_assert{,_ne,_eq}!`",
         deprecation: None,
         module: "mutable_debug_assertion",