Move debug_assertions_with_mut_call to nursery
This commit is contained in:
parent
9c223d9321
commit
4ee120633c
@ -1256,7 +1256,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),
|
||||
@ -1570,7 +1569,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),
|
||||
@ -1624,6 +1622,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),
|
||||
|
@ -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}!`"
|
||||
}
|
||||
|
||||
|
@ -289,7 +289,7 @@ pub const ALL_LINTS: [Lint; 349] = [
|
||||
},
|
||||
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",
|
||||
|
Loading…
Reference in New Issue
Block a user