mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-25 20:07:21 +00:00
Move transmute_float_to_int
lint to complexity
`transmute_float_to_int` lint was accidentally added to nursery so moving it to the complexity group.
This commit is contained in:
parent
c092068996
commit
b793cf09f2
3 changed files with 4 additions and 3 deletions
|
@ -1296,6 +1296,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
|
||||||
LintId::of(&to_digit_is_some::TO_DIGIT_IS_SOME),
|
LintId::of(&to_digit_is_some::TO_DIGIT_IS_SOME),
|
||||||
LintId::of(&transmute::CROSSPOINTER_TRANSMUTE),
|
LintId::of(&transmute::CROSSPOINTER_TRANSMUTE),
|
||||||
LintId::of(&transmute::TRANSMUTE_BYTES_TO_STR),
|
LintId::of(&transmute::TRANSMUTE_BYTES_TO_STR),
|
||||||
|
LintId::of(&transmute::TRANSMUTE_FLOAT_TO_INT),
|
||||||
LintId::of(&transmute::TRANSMUTE_INT_TO_BOOL),
|
LintId::of(&transmute::TRANSMUTE_INT_TO_BOOL),
|
||||||
LintId::of(&transmute::TRANSMUTE_INT_TO_CHAR),
|
LintId::of(&transmute::TRANSMUTE_INT_TO_CHAR),
|
||||||
LintId::of(&transmute::TRANSMUTE_INT_TO_FLOAT),
|
LintId::of(&transmute::TRANSMUTE_INT_TO_FLOAT),
|
||||||
|
@ -1494,6 +1495,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
|
||||||
LintId::of(&temporary_assignment::TEMPORARY_ASSIGNMENT),
|
LintId::of(&temporary_assignment::TEMPORARY_ASSIGNMENT),
|
||||||
LintId::of(&transmute::CROSSPOINTER_TRANSMUTE),
|
LintId::of(&transmute::CROSSPOINTER_TRANSMUTE),
|
||||||
LintId::of(&transmute::TRANSMUTE_BYTES_TO_STR),
|
LintId::of(&transmute::TRANSMUTE_BYTES_TO_STR),
|
||||||
|
LintId::of(&transmute::TRANSMUTE_FLOAT_TO_INT),
|
||||||
LintId::of(&transmute::TRANSMUTE_INT_TO_BOOL),
|
LintId::of(&transmute::TRANSMUTE_INT_TO_BOOL),
|
||||||
LintId::of(&transmute::TRANSMUTE_INT_TO_CHAR),
|
LintId::of(&transmute::TRANSMUTE_INT_TO_CHAR),
|
||||||
LintId::of(&transmute::TRANSMUTE_INT_TO_FLOAT),
|
LintId::of(&transmute::TRANSMUTE_INT_TO_FLOAT),
|
||||||
|
@ -1612,7 +1614,6 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
|
||||||
LintId::of(&mutex_atomic::MUTEX_INTEGER),
|
LintId::of(&mutex_atomic::MUTEX_INTEGER),
|
||||||
LintId::of(&needless_borrow::NEEDLESS_BORROW),
|
LintId::of(&needless_borrow::NEEDLESS_BORROW),
|
||||||
LintId::of(&path_buf_push_overwrite::PATH_BUF_PUSH_OVERWRITE),
|
LintId::of(&path_buf_push_overwrite::PATH_BUF_PUSH_OVERWRITE),
|
||||||
LintId::of(&transmute::TRANSMUTE_FLOAT_TO_INT),
|
|
||||||
LintId::of(&use_self::USE_SELF),
|
LintId::of(&use_self::USE_SELF),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -210,7 +210,7 @@ declare_clippy_lint! {
|
||||||
/// let _: u32 = 1f32.to_bits();
|
/// let _: u32 = 1f32.to_bits();
|
||||||
/// ```
|
/// ```
|
||||||
pub TRANSMUTE_FLOAT_TO_INT,
|
pub TRANSMUTE_FLOAT_TO_INT,
|
||||||
nursery,
|
complexity,
|
||||||
"transmutes from a float to an integer"
|
"transmutes from a float to an integer"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1997,7 +1997,7 @@ pub const ALL_LINTS: [Lint; 345] = [
|
||||||
},
|
},
|
||||||
Lint {
|
Lint {
|
||||||
name: "transmute_float_to_int",
|
name: "transmute_float_to_int",
|
||||||
group: "nursery",
|
group: "complexity",
|
||||||
desc: "transmutes from a float to an integer",
|
desc: "transmutes from a float to an integer",
|
||||||
deprecation: None,
|
deprecation: None,
|
||||||
module: "transmute",
|
module: "transmute",
|
||||||
|
|
Loading…
Add table
Reference in a new issue