mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
beaf15532a
Placeholders are still given for the content of the whole block. However, if the result of the original `if let` or `match` expression was assigned, the assignment is reflected in the suggestion. No-op assignments (`let x = x;`) are skipped though, unless they contain an explicit type which might help the compiler (`let x: u32 = x;` is kept). Closes rust-lang/rust-clippy#362 changelog: [`while_let_loop`]: include `let` assignment in suggestion