rust/clippy_utils/src
bors c7cfe7f5e2 Auto merge of #13156 - y21:for_each_expr_visitor_refactor, r=xFrednet
Remove unnecessary `res` field in `for_each_expr` visitors

Small refactor in the `for_each_expr*` visitors. This should not change anything functionally.

Instead of storing the final value `Option<B>` in the visitor and setting it to `Some` when we get a `ControlFlow::Break(B)` from the closure, we can just directly return it from the visitor itself now that visitors support that.

cc #12829 and https://github.com/rust-lang/rust-clippy/pull/12830#discussion_r1627882827

changelog: none
2024-07-25 17:51:02 +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 Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
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 Merge commit '26ac6aab023393c94edf42f38f6ad31196009643' 2024-01-11 17:27:03 +01:00
higher.rs Merge commit '68a799aea9b65e2444fbecfe32217ce7d5a3604f' into clippy-subtree-update 2024-06-27 18:56:04 +02: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