rust/clippy_utils/src
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
..
ast_utils
mir Merge commit '68a799aea9b65e2444fbecfe32217ce7d5a3604f' into clippy-subtree-update 2024-06-27 18:56:04 +02:00
ty/type_certainty Refactor for using config values: 2024-07-17 14:05:49 -04:00
ast_utils.rs Rollup merge of #127058 - compiler-errors:tighten-async-spans, r=oli-obk 2024-06-28 08:34:10 +02:00
attrs.rs
check_proc_macro.rs Merge commit '68a799aea9b65e2444fbecfe32217ce7d5a3604f' into clippy-subtree-update 2024-06-27 18:56:04 +02:00
comparisons.rs
consts.rs Merge commit '68a799aea9b65e2444fbecfe32217ce7d5a3604f' into clippy-subtree-update 2024-06-27 18:56:04 +02:00
diagnostics.rs Remove LintDiagnostic::msg 2024-05-23 04:08:35 +02:00
eager_or_lazy.rs
higher.rs Fix while_let_on_iterator dropping loop label when applying fix. 2024-07-23 02:55:58 -05:00
hir_utils.rs Merge remote-tracking branch 'upstream/master' into rustup 2024-07-25 18:23:27 +02:00
lib.rs Merge remote-tracking branch 'upstream/master' into rustup 2024-07-25 18:23:27 +02:00
macros.rs Merge commit '3e5a02b13b1244545454752c6629b767522a44b1' into clippy-subtree-update 2024-06-13 12:30:48 +02:00
numeric_literal.rs fix [excessive_precision] suggestions on float literal written in scientific notation 2024-07-15 18:52:18 -03:00
paths.rs Merge commit 'b794b8e08c16517a941dc598bb1483e8e12a8592' into clippy-subtree-update 2024-07-11 15:44:03 +02:00
ptr.rs Merge commit '3e5a02b13b1244545454752c6629b767522a44b1' into clippy-subtree-update 2024-06-13 12:30:48 +02:00
qualify_min_const_fn.rs Add support for mir::TerminatorKind::TailCall in clippy 2024-07-07 17:11:05 +02:00
source.rs Merge commit '68a799aea9b65e2444fbecfe32217ce7d5a3604f' into clippy-subtree-update 2024-06-27 18:56:04 +02:00
str_utils.rs
sugg.rs Lint casts to u128 in cast_lossless 2024-07-24 14:32:41 +00:00
sym_helper.rs
ty.rs Refactor for using config values: 2024-07-17 14:05:49 -04:00
usage.rs Merge commit '3e5a02b13b1244545454752c6629b767522a44b1' into clippy-subtree-update 2024-06-13 12:30:48 +02:00
visitors.rs get rid of unnecessary res field in for_each_expr visitors 2024-07-25 15:02:31 +02:00