rust/clippy_utils
bors d20be39c7f Auto merge of #13149 - jusexton:issue-13123, r=dswij
Fix while_let_on_iterator dropping loop label when applying fix.

Loop label was not persisted when displaying help and was therefore producing broken rust code when applying fixes.

Solution was to store the `ast::Label` when creating a `higher::WhileLet` from an expression and add the label name to the lint suggestion and diagnostics.

---

Fixes: https://github.com/rust-lang/rust-clippy/issues/13123

changelog: [`while_let_on_iterator`]: Fix issue dropping loop label when displaying help and applying fixes.
2024-07-27 15:23:21 +00:00
..
src Auto merge of #13149 - jusexton:issue-13123, r=dswij 2024-07-27 15:23:21 +00:00
Cargo.toml Bump Clippy version -> 0.1.82 2024-07-25 18:23:37 +02:00