Skip to content

Commit 5ba4aa8

Browse files
committed
Move debug_assertions_with_mut_call to nursery
1 parent 006f07f commit 5ba4aa8

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
@@ -1261,7 +1261,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12611261
LintId::of(&misc_early::ZERO_PREFIXED_LITERAL),
12621262
LintId::of(&mut_key::MUTABLE_KEY_TYPE),
12631263
LintId::of(&mut_reference::UNNECESSARY_MUT_PASSED),
1264-
LintId::of(&mutable_debug_assertion::DEBUG_ASSERT_WITH_MUT_CALL),
12651264
LintId::of(&mutex_atomic::MUTEX_ATOMIC),
12661265
LintId::of(&needless_bool::BOOL_COMPARISON),
12671266
LintId::of(&needless_bool::NEEDLESS_BOOL),
@@ -1578,7 +1577,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15781577
LintId::of(&misc::FLOAT_CMP),
15791578
LintId::of(&misc::MODULO_ONE),
15801579
LintId::of(&mut_key::MUTABLE_KEY_TYPE),
1581-
LintId::of(&mutable_debug_assertion::DEBUG_ASSERT_WITH_MUT_CALL),
15821580
LintId::of(&non_copy_const::BORROW_INTERIOR_MUTABLE_CONST),
15831581
LintId::of(&non_copy_const::DECLARE_INTERIOR_MUTABLE_CONST),
15841582
LintId::of(&open_options::NONSENSICAL_OPEN_OPTIONS),
@@ -1632,6 +1630,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16321630
LintId::of(&fallible_impl_from::FALLIBLE_IMPL_FROM),
16331631
LintId::of(&missing_const_for_fn::MISSING_CONST_FOR_FN),
16341632
LintId::of(&mul_add::MANUAL_MUL_ADD),
1633+
LintId::of(&mutable_debug_assertion::DEBUG_ASSERT_WITH_MUT_CALL),
16351634
LintId::of(&mutex_atomic::MUTEX_INTEGER),
16361635
LintId::of(&needless_borrow::NEEDLESS_BORROW),
16371636
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; 351] = [
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)