2024 edition migration seems overly eager to rewrite every if let
into match
#133554
Labels
A-edition-2024
Area: The 2024 edition
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
L-if_let_rescope
Lint: if_let_rescope
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
I tried running
cargo +nightly fix --edition
against Quinn. It seems to rewrite a lot of instances ofif let
tomatch
, without seemingly much explanation or discrimination. This makes the code harder to read/less concise in many cases. Is this really necessary for all these cases? Could it somehow be made to be more precise/discriminate?The text was updated successfully, but these errors were encountered: