diff options
| author | Konrad Borowski <konrad@borowski.pw> | 2019-01-07 14:39:56 +0100 |
|---|---|---|
| committer | Konrad Borowski <konrad@borowski.pw> | 2019-01-07 14:39:56 +0100 |
| commit | 27ea638a15b5d71e06a2dcc3cc996f35b4ab3bd1 (patch) | |
| tree | 668c40ed53e0a492a5753ef67e4455bb919cd230 | |
| parent | 21d30450b51adf206626aacf6fe0abf52a7b4ec5 (diff) | |
| download | rust-27ea638a15b5d71e06a2dcc3cc996f35b4ab3bd1.tar.gz rust-27ea638a15b5d71e06a2dcc3cc996f35b4ab3bd1.zip | |
Move cast_ref_to_mut list to correctness group
| -rw-r--r-- | clippy_lints/src/lib.rs | 3 | ||||
| -rw-r--r-- | clippy_lints/src/types.rs | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index 84e20111897..35c00fb6328 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -759,6 +759,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) { types::BOX_VEC, types::CAST_LOSSLESS, types::CAST_PTR_ALIGNMENT, + types::CAST_REF_TO_MUT, types::CHAR_LIT_AS_U8, types::FN_TO_NUMERIC_CAST, types::FN_TO_NUMERIC_CAST_WITH_TRUNCATION, @@ -990,6 +991,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) { transmute::WRONG_TRANSMUTE, types::ABSURD_EXTREME_COMPARISONS, types::CAST_PTR_ALIGNMENT, + types::CAST_REF_TO_MUT, types::UNIT_CMP, unicode::ZERO_WIDTH_SPACE, unused_io_amount::UNUSED_IO_AMOUNT, @@ -1027,7 +1029,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) { mutex_atomic::MUTEX_INTEGER, needless_borrow::NEEDLESS_BORROW, redundant_clone::REDUNDANT_CLONE, - types::CAST_REF_TO_MUT, unwrap::PANICKING_UNWRAP, unwrap::UNNECESSARY_UNWRAP, ]); diff --git a/clippy_lints/src/types.rs b/clippy_lints/src/types.rs index 3acc82edf29..f9ed38e52a0 100644 --- a/clippy_lints/src/types.rs +++ b/clippy_lints/src/types.rs @@ -2269,7 +2269,7 @@ impl<'a, 'b, 'tcx: 'a + 'b> Visitor<'tcx> for ImplicitHasherConstructorVisitor<' /// ``` declare_clippy_lint! { pub CAST_REF_TO_MUT, - nursery, + correctness, "a cast of reference to a mutable pointer" } |
