Skip to content

Commit 65f518e

Browse files
committed
Auto merge of rust-lang#8979 - Alexendoo:version-numbers, r=flip1995
Correct some `#[clippy::version]`s Some were a bit off changelog: none
2 parents 4970527 + 2b655d4 commit 65f518e

10 files changed

+14
-14
lines changed

clippy_lints/src/casts/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ declare_clippy_lint! {
414414
/// enum E { X = 256 };
415415
/// let _ = E::X as u8;
416416
/// ```
417-
#[clippy::version = "1.60.0"]
417+
#[clippy::version = "1.61.0"]
418418
pub CAST_ENUM_TRUNCATION,
419419
suspicious,
420420
"casts from an enum type to an integral type which will truncate the value"
@@ -459,7 +459,7 @@ declare_clippy_lint! {
459459
/// println!("{:?}", &*new_ptr);
460460
/// }
461461
/// ```
462-
#[clippy::version = "1.60.0"]
462+
#[clippy::version = "1.61.0"]
463463
pub CAST_SLICE_DIFFERENT_SIZES,
464464
correctness,
465465
"casting using `as` between raw pointers to slices of types with different sizes"

clippy_lints/src/doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ declare_clippy_lint! {
163163
/// }
164164
/// }
165165
/// ```
166-
#[clippy::version = "1.52.0"]
166+
#[clippy::version = "1.51.0"]
167167
pub MISSING_PANICS_DOC,
168168
pedantic,
169169
"`pub fn` may panic without `# Panics` in doc comment"

clippy_lints/src/index_refutable_slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ declare_clippy_lint! {
4545
/// println!("{}", first);
4646
/// }
4747
/// ```
48-
#[clippy::version = "1.58.0"]
48+
#[clippy::version = "1.59.0"]
4949
pub INDEX_REFUTABLE_SLICE,
5050
nursery,
5151
"avoid indexing on slices which could be destructed"

clippy_lints/src/loops/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ declare_clippy_lint! {
596596
/// std::hint::spin_loop()
597597
/// }
598598
/// ```
599-
#[clippy::version = "1.59.0"]
599+
#[clippy::version = "1.61.0"]
600600
pub MISSING_SPIN_LOOP,
601601
perf,
602602
"An empty busy waiting loop"

clippy_lints/src/methods/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ declare_clippy_lint! {
141141
/// vec.iter().take(10).cloned();
142142
/// vec.iter().last().cloned();
143143
/// ```
144-
#[clippy::version = "1.59.0"]
144+
#[clippy::version = "1.60.0"]
145145
pub ITER_OVEREAGER_CLONED,
146146
perf,
147147
"using `cloned()` early with `Iterator::iter()` can lead to some performance inefficiencies"
@@ -1907,7 +1907,7 @@ declare_clippy_lint! {
19071907
/// let x = [1, 2, 3];
19081908
/// let y: Vec<_> = x.iter().map(|x| 2*x).collect();
19091909
/// ```
1910-
#[clippy::version = "1.52.0"]
1910+
#[clippy::version = "1.47.0"]
19111911
pub MAP_IDENTITY,
19121912
complexity,
19131913
"using iterator.map(|x| x)"
@@ -2100,7 +2100,7 @@ declare_clippy_lint! {
21002100
/// let str = "key=value=add";
21012101
/// let _ = str.split('=').next().unwrap();
21022102
/// ```
2103-
#[clippy::version = "1.58.0"]
2103+
#[clippy::version = "1.59.0"]
21042104
pub NEEDLESS_SPLITN,
21052105
complexity,
21062106
"usages of `str::splitn` that can be replaced with `str::split`"
@@ -2131,7 +2131,7 @@ declare_clippy_lint! {
21312131
/// foo(&path.to_string_lossy());
21322132
/// fn foo(s: &str) {}
21332133
/// ```
2134-
#[clippy::version = "1.58.0"]
2134+
#[clippy::version = "1.59.0"]
21352135
pub UNNECESSARY_TO_OWNED,
21362136
perf,
21372137
"unnecessary calls to `to_owned`-like functions"

clippy_lints/src/needless_late_init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ declare_clippy_lint! {
5656
/// -1
5757
/// };
5858
/// ```
59-
#[clippy::version = "1.58.0"]
59+
#[clippy::version = "1.59.0"]
6060
pub NEEDLESS_LATE_INIT,
6161
style,
6262
"late initializations that can be replaced by a `let` statement with an initializer"

clippy_lints/src/octal_escapes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ declare_clippy_lint! {
4242
/// let one = "\x1b[1mWill this be bold?\x1b[0m";
4343
/// let two = "\x0033\x00";
4444
/// ```
45-
#[clippy::version = "1.58.0"]
45+
#[clippy::version = "1.59.0"]
4646
pub OCTAL_ESCAPES,
4747
suspicious,
4848
"string escape sequences looking like octal characters"

clippy_lints/src/only_used_in_recursion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ declare_clippy_lint! {
8787
/// # print!("{}", f(1));
8888
/// # }
8989
/// ```
90-
#[clippy::version = "1.60.0"]
90+
#[clippy::version = "1.61.0"]
9191
pub ONLY_USED_IN_RECURSION,
9292
nursery,
9393
"arguments that is only used in recursion can be removed"

clippy_lints/src/redundant_slicing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ declare_clippy_lint! {
6060
/// let vec = vec![1, 2, 3];
6161
/// let slice = &*vec;
6262
/// ```
63-
#[clippy::version = "1.60.0"]
63+
#[clippy::version = "1.61.0"]
6464
pub DEREF_BY_SLICING,
6565
restriction,
6666
"slicing instead of dereferencing"

clippy_lints/src/single_char_lifetime_names.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ declare_clippy_lint! {
3333
/// source: &'src str,
3434
/// }
3535
/// ```
36-
#[clippy::version = "1.59.0"]
36+
#[clippy::version = "1.60.0"]
3737
pub SINGLE_CHAR_LIFETIME_NAMES,
3838
restriction,
3939
"warns against single-character lifetime names"

0 commit comments

Comments
 (0)