Skip to content

Commit 4ee1206

Browse files
committed
Move debug_assertions_with_mut_call to nursery
1 parent 9c223d9 commit 4ee1206

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

clippy_lints/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12561256
LintId::of(&misc_early::ZERO_PREFIXED_LITERAL),
12571257
LintId::of(&mut_key::MUTABLE_KEY_TYPE),
12581258
LintId::of(&mut_reference::UNNECESSARY_MUT_PASSED),
1259-
LintId::of(&mutable_debug_assertion::DEBUG_ASSERT_WITH_MUT_CALL),
12601259
LintId::of(&mutex_atomic::MUTEX_ATOMIC),
12611260
LintId::of(&needless_bool::BOOL_COMPARISON),
12621261
LintId::of(&needless_bool::NEEDLESS_BOOL),
@@ -1570,7 +1569,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15701569
LintId::of(&misc::FLOAT_CMP),
15711570
LintId::of(&misc::MODULO_ONE),
15721571
LintId::of(&mut_key::MUTABLE_KEY_TYPE),
1573-
LintId::of(&mutable_debug_assertion::DEBUG_ASSERT_WITH_MUT_CALL),
15741572
LintId::of(&non_copy_const::BORROW_INTERIOR_MUTABLE_CONST),
15751573
LintId::of(&non_copy_const::DECLARE_INTERIOR_MUTABLE_CONST),
15761574
LintId::of(&open_options::NONSENSICAL_OPEN_OPTIONS),
@@ -1624,6 +1622,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16241622
LintId::of(&fallible_impl_from::FALLIBLE_IMPL_FROM),
16251623
LintId::of(&missing_const_for_fn::MISSING_CONST_FOR_FN),
16261624
LintId::of(&mul_add::MANUAL_MUL_ADD),
1625+
LintId::of(&mutable_debug_assertion::DEBUG_ASSERT_WITH_MUT_CALL),
16271626
LintId::of(&mutex_atomic::MUTEX_INTEGER),
16281627
LintId::of(&needless_borrow::NEEDLESS_BORROW),
16291628
LintId::of(&path_buf_push_overwrite::PATH_BUF_PUSH_OVERWRITE),

clippy_lints/src/mutable_debug_assertion.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ declare_clippy_lint! {
2828
/// debug_assert!(take_a_mut_parameter(&mut 5));
2929
/// ```
3030
pub DEBUG_ASSERT_WITH_MUT_CALL,
31-
correctness,
31+
nursery,
3232
"mutable arguments in `debug_assert{,_ne,_eq}!`"
3333
}
3434

src/lintlist/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ pub const ALL_LINTS: [Lint; 349] = [
289289
},
290290
Lint {
291291
name: "debug_assert_with_mut_call",
292-
group: "correctness",
292+
group: "nursery",
293293
desc: "mutable arguments in `debug_assert{,_ne,_eq}!`",
294294
deprecation: None,
295295
module: "mutable_debug_assertion",

0 commit comments

Comments
 (0)