Fix clippy::version of elidable_lifetime_names to 1.87 (#14654)
relates to rust-lang/rust-clippy#14653 changelog: [`elidable_lifetime_names`]: Fix clippy version that this lint was introduced in. It might be good to have some automation to check that the version is correct. IIUC the version should be the current nightly version at the time a PR is merged. If a release happens while a PR is open, the version needs to be bumped - this is easy to forget.
This commit is contained in:
commit
62ba9969a4
6 changed files with 6 additions and 6 deletions
|
|
@ -468,7 +468,7 @@ declare_clippy_lint! {
|
|||
/// #[ignore = "Some good reason"]
|
||||
/// fn test() {}
|
||||
/// ```
|
||||
#[clippy::version = "1.85.0"]
|
||||
#[clippy::version = "1.88.0"]
|
||||
pub IGNORE_WITHOUT_REASON,
|
||||
pedantic,
|
||||
"ignored tests without messages"
|
||||
|
|
|
|||
|
|
@ -781,7 +781,7 @@ declare_clippy_lint! {
|
|||
/// let aligned = std::ptr::dangling::<u32>();
|
||||
/// let mut_ptr: *mut i64 = std::ptr::dangling_mut();
|
||||
/// ```
|
||||
#[clippy::version = "1.87.0"]
|
||||
#[clippy::version = "1.88.0"]
|
||||
pub MANUAL_DANGLING_PTR,
|
||||
style,
|
||||
"casting small constant literals to pointers to create dangling pointers"
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ declare_clippy_lint! {
|
|||
/// ```no_run
|
||||
/// //! <code>[first](x)second</code>
|
||||
/// ```
|
||||
#[clippy::version = "1.86.0"]
|
||||
#[clippy::version = "1.87.0"]
|
||||
pub DOC_LINK_CODE,
|
||||
nursery,
|
||||
"link with code back-to-back with other code"
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ declare_clippy_lint! {
|
|||
///
|
||||
/// let result = a.saturating_sub(b);
|
||||
/// ```
|
||||
#[clippy::version = "1.44.0"]
|
||||
#[clippy::version = "1.83.0"]
|
||||
pub INVERTED_SATURATING_SUB,
|
||||
correctness,
|
||||
"Check if a variable is smaller than another one and still subtract from it even if smaller"
|
||||
|
|
|
|||
|
|
@ -778,7 +778,7 @@ declare_clippy_lint! {
|
|||
/// let _ = s[idx..];
|
||||
/// }
|
||||
/// ```
|
||||
#[clippy::version = "1.83.0"]
|
||||
#[clippy::version = "1.88.0"]
|
||||
pub CHAR_INDICES_AS_BYTE_INDICES,
|
||||
correctness,
|
||||
"using the character position yielded by `.chars().enumerate()` in a context where a byte index is expected"
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ declare_clippy_lint! {
|
|||
/// a.abs_diff(b)
|
||||
/// # ;
|
||||
/// ```
|
||||
#[clippy::version = "1.86.0"]
|
||||
#[clippy::version = "1.88.0"]
|
||||
pub MANUAL_ABS_DIFF,
|
||||
complexity,
|
||||
"using an if-else pattern instead of `abs_diff`"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue