mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Update versions of 1.86 lints (#14540)
r? @y21 Completely forgot about the version update during CHANGELOG creation. I have to re-learn how to do all that. changelog: none
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
/// _ = opt.as_slice();
|
||||
/// _ = opt.as_slice();
|
||||
/// ```
|
||||
#[clippy::version = "1.85.0"]
|
||||
#[clippy::version = "1.86.0"]
|
||||
pub MANUAL_OPTION_AS_SLICE,
|
||||
complexity,
|
||||
"manual `Option::as_slice`"
|
||||
|
||||
@@ -4283,7 +4283,7 @@
|
||||
/// ```no_run
|
||||
/// let last_arg = "echo hello world".split(' ').next_back();
|
||||
/// ```
|
||||
#[clippy::version = "1.85.0"]
|
||||
#[clippy::version = "1.86.0"]
|
||||
pub DOUBLE_ENDED_ITERATOR_LAST,
|
||||
perf,
|
||||
"using `Iterator::last` on a `DoubleEndedIterator`"
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
/// static FOO: std::sync::LazyLock<String> = std::sync::LazyLock::new(|| "FOO".to_lowercase());
|
||||
/// static BAR: std::sync::LazyLock<String> = std::sync::LazyLock::new(|| "BAR".to_lowercase());
|
||||
/// ```
|
||||
#[clippy::version = "1.81.0"]
|
||||
#[clippy::version = "1.86.0"]
|
||||
pub NON_STD_LAZY_STATICS,
|
||||
pedantic,
|
||||
"lazy static that could be replaced by `std::sync::LazyLock`"
|
||||
|
||||
Reference in New Issue
Block a user