diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2025-05-28 16:26:14 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-28 16:26:14 +0000 |
| commit | beaf15532abe888421ad6c6fa127f03a6d800656 (patch) | |
| tree | 8722251ff0737a9645d40edc8e10859308e1fa37 /compiler/rustc_codegen_gcc | |
| parent | b90880d4086e0418cd48d2037e95feb6e600fbe2 (diff) | |
| parent | d14c6f2c7907198701dbbc356c2ce505347114b9 (diff) | |
| download | rust-beaf15532abe888421ad6c6fa127f03a6d800656.tar.gz rust-beaf15532abe888421ad6c6fa127f03a6d800656.zip | |
`while_let_loop`: Include `let` assignment in suggestion (#14756)
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
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
