mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
Update version attributes for 1.83 lints
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
/// let y: i32 = 4;
|
||||
/// let div = x.div_ceil(y);
|
||||
/// ```
|
||||
#[clippy::version = "1.81.0"]
|
||||
#[clippy::version = "1.83.0"]
|
||||
pub MANUAL_DIV_CEIL,
|
||||
complexity,
|
||||
"manually reimplementing `div_ceil`"
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/// let a: u32 = 4;
|
||||
/// let result = a.is_power_of_two();
|
||||
/// ```
|
||||
#[clippy::version = "1.82.0"]
|
||||
#[clippy::version = "1.83.0"]
|
||||
pub MANUAL_IS_POWER_OF_TWO,
|
||||
pedantic,
|
||||
"manually reimplementing `is_power_of_two`"
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
/// let _ = FooStruct{};
|
||||
/// }
|
||||
/// ```
|
||||
#[clippy::version = "pre 1.29.0"]
|
||||
#[clippy::version = "1.83.0"]
|
||||
pub USED_UNDERSCORE_ITEMS,
|
||||
pedantic,
|
||||
"using a item which is prefixed with an underscore"
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
/// let r2 = x % NonZeroU64::from(y);
|
||||
/// }
|
||||
/// ```
|
||||
#[clippy::version = "1.81.0"]
|
||||
#[clippy::version = "1.83.0"]
|
||||
pub NON_ZERO_SUGGESTIONS,
|
||||
restriction,
|
||||
"suggests using `NonZero#` from `u#` or `i#` for more efficient and type-safe conversions"
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
/// let mut child = Command::new("ls").spawn().expect("failed to execute child");
|
||||
/// child.wait().expect("failed to wait on child");
|
||||
/// ```
|
||||
#[clippy::version = "1.74.0"]
|
||||
#[clippy::version = "1.83.0"]
|
||||
pub ZOMBIE_PROCESSES,
|
||||
suspicious,
|
||||
"not waiting on a spawned child process"
|
||||
|
||||
Reference in New Issue
Block a user