Update version attribute for 1.74 lints
This commit is contained in:
parent
0c42e451d6
commit
9401cf21e4
@ -371,7 +371,7 @@
|
|||||||
/// let _ = 1 / random();
|
/// let _ = 1 / random();
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "1.73.0"]
|
#[clippy::version = "1.74.0"]
|
||||||
pub SHOULD_PANIC_WITHOUT_EXPECT,
|
pub SHOULD_PANIC_WITHOUT_EXPECT,
|
||||||
pedantic,
|
pedantic,
|
||||||
"ensures that all `should_panic` attributes specify its expected panic message"
|
"ensures that all `should_panic` attributes specify its expected panic message"
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
/// Box::new(123)
|
/// Box::new(123)
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "1.73.0"]
|
#[clippy::version = "1.74.0"]
|
||||||
pub IMPLIED_BOUNDS_IN_IMPLS,
|
pub IMPLIED_BOUNDS_IN_IMPLS,
|
||||||
nursery,
|
nursery,
|
||||||
"specifying bounds that are implied by other bounds in `impl Trait` type"
|
"specifying bounds that are implied by other bounds in `impl Trait` type"
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
/// v[0] + v[1] + v[2] + v[3]
|
/// v[0] + v[1] + v[2] + v[3]
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "1.70.0"]
|
#[clippy::version = "1.74.0"]
|
||||||
pub MISSING_ASSERTS_FOR_INDEXING,
|
pub MISSING_ASSERTS_FOR_INDEXING,
|
||||||
restriction,
|
restriction,
|
||||||
"indexing into a slice multiple times without an `assert`"
|
"indexing into a slice multiple times without an `assert`"
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
/// let x = "foo";
|
/// let x = "foo";
|
||||||
/// f(x);
|
/// f(x);
|
||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "pre 1.29.0"]
|
#[clippy::version = "1.74.0"]
|
||||||
pub NEEDLESS_BORROWS_FOR_GENERIC_ARGS,
|
pub NEEDLESS_BORROWS_FOR_GENERIC_ARGS,
|
||||||
style,
|
style,
|
||||||
"taking a reference that is going to be automatically dereferenced"
|
"taking a reference that is going to be automatically dereferenced"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// let mut v: Vec<usize> = Vec::with_capacity(10);
|
/// let mut v: Vec<usize> = Vec::with_capacity(10);
|
||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "1.73.0"]
|
#[clippy::version = "1.74.0"]
|
||||||
pub RESERVE_AFTER_INITIALIZATION,
|
pub RESERVE_AFTER_INITIALIZATION,
|
||||||
complexity,
|
complexity,
|
||||||
"`reserve` called immediately after `Vec` creation"
|
"`reserve` called immediately after `Vec` creation"
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// Some(i32::swap_bytes(4));
|
/// Some(i32::swap_bytes(4));
|
||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "1.73.0"]
|
#[clippy::version = "1.74.0"]
|
||||||
pub UNNECESSARY_MAP_ON_CONSTRUCTOR,
|
pub UNNECESSARY_MAP_ON_CONSTRUCTOR,
|
||||||
complexity,
|
complexity,
|
||||||
"using `map`/`map_err` on `Option` or `Result` constructors"
|
"using `map`/`map_err` on `Option` or `Result` constructors"
|
||||||
|
Loading…
Reference in New Issue
Block a user