diff options
| author | bors <bors@rust-lang.org> | 2024-07-27 15:23:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-27 15:23:21 +0000 |
| commit | d20be39c7f904ba4e648dce3f82e776a5421bb71 (patch) | |
| tree | 6c8d2e3f949b8195996bb2bdb7fb72a932d56489 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 92768eeac4af6fb31bdaf94b9844a6455750926e (diff) | |
| parent | 0cdf6e172cb861387d41ad01540a321a1e09c1b4 (diff) | |
| download | rust-d20be39c7f904ba4e648dce3f82e776a5421bb71.tar.gz rust-d20be39c7f904ba4e648dce3f82e776a5421bb71.zip | |
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
