-
Hi, I noticed a change of behavior in clippy 1.89, I don't know if it's a bug or if I'm missing something of the new release, I have a small project to show the behavior change, this is my main.rs: fn main() {
let nums: Vec<i32> = ["1", "2", "whee!"].iter().flat_map(|x| x.parse().ok()).collect();
println!("{:?}", nums);
} I have this rust_toolchain.toml:
when I run
If I bump the rust toolchain channel to From what I see from the 1.89.0 doc the lint should still be a style warning https://rust-lang.github.io/rust-clippy/rust-1.89.0/index.html#uninlined_format_args |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Ah, I understand what happened: We backported the move to pedantic in rust-lang/rust#144742, so that the backport gets into stable a release early, because people were really annoyed by us moving that to warn-by-default in 1.88.0. But such lint move backports are not reflected in our docs. There's no easy fix for addressing this, without making the backporting process way more complicated. Since I have to do the backports, I for now just say "it is what it is". Sorry for the inconvenience of the docs not matching reality :/ |
Beta Was this translation helpful? Give feedback.
Ah, I understand what happened: We backported the move to pedantic in rust-lang/rust#144742, so that the backport gets into stable a release early, because people were really annoyed by us moving that to warn-by-default in 1.88.0. But such lint move backports are not reflected in our docs. There's no easy fix for addressing this, without making the backporting process way more complicated. Since I have to do the backports, I for now just say "it is what it is".
Sorry for the inconvenience of the docs not matching reality :/