Skip to content

Commit 62ba996

Browse files
authored
Fix clippy::version of elidable_lifetime_names to 1.87 (#14654)
relates to #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.
2 parents b363499 + c7d3d6d commit 62ba996

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

clippy_lints/src/attrs/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ declare_clippy_lint! {
468468
/// #[ignore = "Some good reason"]
469469
/// fn test() {}
470470
/// ```
471-
#[clippy::version = "1.85.0"]
471+
#[clippy::version = "1.88.0"]
472472
pub IGNORE_WITHOUT_REASON,
473473
pedantic,
474474
"ignored tests without messages"

clippy_lints/src/casts/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ declare_clippy_lint! {
781781
/// let aligned = std::ptr::dangling::<u32>();
782782
/// let mut_ptr: *mut i64 = std::ptr::dangling_mut();
783783
/// ```
784-
#[clippy::version = "1.87.0"]
784+
#[clippy::version = "1.88.0"]
785785
pub MANUAL_DANGLING_PTR,
786786
style,
787787
"casting small constant literals to pointers to create dangling pointers"

clippy_lints/src/doc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ declare_clippy_lint! {
9393
/// ```no_run
9494
/// //! <code>[first](x)second</code>
9595
/// ```
96-
#[clippy::version = "1.86.0"]
96+
#[clippy::version = "1.87.0"]
9797
pub DOC_LINK_CODE,
9898
nursery,
9999
"link with code back-to-back with other code"

clippy_lints/src/implicit_saturating_sub.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ declare_clippy_lint! {
6969
///
7070
/// let result = a.saturating_sub(b);
7171
/// ```
72-
#[clippy::version = "1.44.0"]
72+
#[clippy::version = "1.83.0"]
7373
pub INVERTED_SATURATING_SUB,
7474
correctness,
7575
"Check if a variable is smaller than another one and still subtract from it even if smaller"

clippy_lints/src/loops/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ declare_clippy_lint! {
778778
/// let _ = s[idx..];
779779
/// }
780780
/// ```
781-
#[clippy::version = "1.83.0"]
781+
#[clippy::version = "1.88.0"]
782782
pub CHAR_INDICES_AS_BYTE_INDICES,
783783
correctness,
784784
"using the character position yielded by `.chars().enumerate()` in a context where a byte index is expected"

clippy_lints/src/manual_abs_diff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ declare_clippy_lint! {
3636
/// a.abs_diff(b)
3737
/// # ;
3838
/// ```
39-
#[clippy::version = "1.86.0"]
39+
#[clippy::version = "1.88.0"]
4040
pub MANUAL_ABS_DIFF,
4141
complexity,
4242
"using an if-else pattern instead of `abs_diff`"

0 commit comments

Comments
 (0)