Move useless_transmute
back to complexity
This commit is contained in:
parent
9c9cca3e66
commit
0c6ebf1c6a
5 changed files with 4 additions and 3 deletions
|
@ -305,6 +305,7 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec![
|
||||||
LintId::of(transmute::TRANSMUTE_NUM_TO_BYTES),
|
LintId::of(transmute::TRANSMUTE_NUM_TO_BYTES),
|
||||||
LintId::of(transmute::TRANSMUTE_PTR_TO_REF),
|
LintId::of(transmute::TRANSMUTE_PTR_TO_REF),
|
||||||
LintId::of(transmute::UNSOUND_COLLECTION_TRANSMUTE),
|
LintId::of(transmute::UNSOUND_COLLECTION_TRANSMUTE),
|
||||||
|
LintId::of(transmute::USELESS_TRANSMUTE),
|
||||||
LintId::of(transmute::WRONG_TRANSMUTE),
|
LintId::of(transmute::WRONG_TRANSMUTE),
|
||||||
LintId::of(transmuting_null::TRANSMUTING_NULL),
|
LintId::of(transmuting_null::TRANSMUTING_NULL),
|
||||||
LintId::of(types::BORROWED_BOX),
|
LintId::of(types::BORROWED_BOX),
|
||||||
|
|
|
@ -90,6 +90,7 @@ store.register_group(true, "clippy::complexity", Some("clippy_complexity"), vec!
|
||||||
LintId::of(transmute::TRANSMUTE_INT_TO_FLOAT),
|
LintId::of(transmute::TRANSMUTE_INT_TO_FLOAT),
|
||||||
LintId::of(transmute::TRANSMUTE_NUM_TO_BYTES),
|
LintId::of(transmute::TRANSMUTE_NUM_TO_BYTES),
|
||||||
LintId::of(transmute::TRANSMUTE_PTR_TO_REF),
|
LintId::of(transmute::TRANSMUTE_PTR_TO_REF),
|
||||||
|
LintId::of(transmute::USELESS_TRANSMUTE),
|
||||||
LintId::of(types::BORROWED_BOX),
|
LintId::of(types::BORROWED_BOX),
|
||||||
LintId::of(types::TYPE_COMPLEXITY),
|
LintId::of(types::TYPE_COMPLEXITY),
|
||||||
LintId::of(types::VEC_BOX),
|
LintId::of(types::VEC_BOX),
|
||||||
|
|
|
@ -31,7 +31,6 @@ store.register_group(true, "clippy::nursery", Some("clippy_nursery"), vec![
|
||||||
LintId::of(trait_bounds::TRAIT_DUPLICATION_IN_BOUNDS),
|
LintId::of(trait_bounds::TRAIT_DUPLICATION_IN_BOUNDS),
|
||||||
LintId::of(trait_bounds::TYPE_REPETITION_IN_BOUNDS),
|
LintId::of(trait_bounds::TYPE_REPETITION_IN_BOUNDS),
|
||||||
LintId::of(transmute::TRANSMUTE_UNDEFINED_REPR),
|
LintId::of(transmute::TRANSMUTE_UNDEFINED_REPR),
|
||||||
LintId::of(transmute::USELESS_TRANSMUTE),
|
|
||||||
LintId::of(unused_rounding::UNUSED_ROUNDING),
|
LintId::of(unused_rounding::UNUSED_ROUNDING),
|
||||||
LintId::of(use_self::USE_SELF),
|
LintId::of(use_self::USE_SELF),
|
||||||
])
|
])
|
||||||
|
|
|
@ -59,7 +59,7 @@ declare_clippy_lint! {
|
||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "pre 1.29.0"]
|
#[clippy::version = "pre 1.29.0"]
|
||||||
pub USELESS_TRANSMUTE,
|
pub USELESS_TRANSMUTE,
|
||||||
nursery,
|
complexity,
|
||||||
"transmutes that have the same to and from types or could be a cast/coercion"
|
"transmutes that have the same to and from types or could be a cast/coercion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#![warn(clippy::transmute_undefined_repr)]
|
#![warn(clippy::transmute_undefined_repr)]
|
||||||
#![allow(clippy::unit_arg, clippy::transmute_ptr_to_ref)]
|
#![allow(clippy::unit_arg, clippy::transmute_ptr_to_ref, clippy::useless_transmute)]
|
||||||
|
|
||||||
use core::any::TypeId;
|
use core::any::TypeId;
|
||||||
use core::ffi::c_void;
|
use core::ffi::c_void;
|
||||||
|
|
Loading…
Add table
Reference in a new issue