Skip to content

Commit 27ea638

Browse files
Move cast_ref_to_mut list to correctness group
1 parent 21d3045 commit 27ea638

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

clippy_lints/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
759759
types::BOX_VEC,
760760
types::CAST_LOSSLESS,
761761
types::CAST_PTR_ALIGNMENT,
762+
types::CAST_REF_TO_MUT,
762763
types::CHAR_LIT_AS_U8,
763764
types::FN_TO_NUMERIC_CAST,
764765
types::FN_TO_NUMERIC_CAST_WITH_TRUNCATION,
@@ -990,6 +991,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
990991
transmute::WRONG_TRANSMUTE,
991992
types::ABSURD_EXTREME_COMPARISONS,
992993
types::CAST_PTR_ALIGNMENT,
994+
types::CAST_REF_TO_MUT,
993995
types::UNIT_CMP,
994996
unicode::ZERO_WIDTH_SPACE,
995997
unused_io_amount::UNUSED_IO_AMOUNT,
@@ -1027,7 +1029,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
10271029
mutex_atomic::MUTEX_INTEGER,
10281030
needless_borrow::NEEDLESS_BORROW,
10291031
redundant_clone::REDUNDANT_CLONE,
1030-
types::CAST_REF_TO_MUT,
10311032
unwrap::PANICKING_UNWRAP,
10321033
unwrap::UNNECESSARY_UNWRAP,
10331034
]);

clippy_lints/src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2269,7 +2269,7 @@ impl<'a, 'b, 'tcx: 'a + 'b> Visitor<'tcx> for ImplicitHasherConstructorVisitor<'
22692269
/// ```
22702270
declare_clippy_lint! {
22712271
pub CAST_REF_TO_MUT,
2272-
nursery,
2272+
correctness,
22732273
"a cast of reference to a mutable pointer"
22742274
}
22752275

0 commit comments

Comments
 (0)