rust-clippy/clippy_lints/src/matches
bors 0f87a81882 Auto merge of #12822 - Alexendoo:for-each-expr, r=dswij
Make `for_each_expr` visit closures by default, rename the old version `for_each_expr_without_closures`

A lot of the time `for_each_expr` is picked when closures should be visited so I think it makes sense for this to be the default with the alternative available for when you don't need to visit them.

The first commit renames `for_each_expr` to `for_each_expr_without_closures` and `for_each_expr_with_closures` to `for_each_expr`

The second commit switches a few uses that I caught over to include closures to fix a few bugs

changelog: none
2024-06-07 09:42:37 +00:00
..
collapsible_match.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
infallible_destructuring_match.rs Implement mut ref/mut ref mut 2024-03-27 09:53:23 -04:00
manual_filter.rs Merge commit 'edb720b199083f4107b858a8761648065bf38d86' into clippyup 2023-11-16 19:13:24 +01:00
manual_map.rs Merge commit 'd9c24d1b1ee61f276e550b967409c9f155eac4e3' into clippyup 2023-07-17 10:22:32 +02:00
manual_unwrap_or.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
manual_utils.rs Rename BindingAnnotation to BindingMode 2024-04-17 09:34:39 -04:00
match_as_ref.rs Rename BindingAnnotation to BindingMode 2024-04-17 09:34:39 -04:00
match_bool.rs Merge commit '371120bdbf58a331db5dcfb2d9cddc040f486de8' into clippyup 2023-05-05 17:45:49 +02:00
match_like_matches.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
match_on_vec_items.rs Merge commit 'edb720b199083f4107b858a8761648065bf38d86' into clippyup 2023-11-16 19:13:24 +01:00
match_ref_pats.rs Merge commit 'd5e2a7aca55ed49fc943b7a07a8eba05ab5a0079' into clippyup 2023-03-24 14:26:19 +01:00
match_same_arms.rs improve [match_same_arms] messages, enable rustfix test 2024-05-14 00:10:45 +02:00
match_single_binding.rs Rename hir::Node::Local into hir::Node::LetStmt 2024-03-22 20:48:36 +01:00
match_str_case_mismatch.rs Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
match_wild_enum.rs Merge commit 'd9c24d1b1ee61f276e550b967409c9f155eac4e3' into clippyup 2023-07-17 10:22:32 +02:00
match_wild_err_arm.rs Fix clippy 2024-04-15 18:48:12 -04:00
mod.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
needless_match.rs Rename BindingAnnotation to BindingMode 2024-04-17 09:34:39 -04:00
overlapping_arms.rs Merge commit 'edb720b199083f4107b858a8761648065bf38d86' into clippyup 2023-11-16 19:13:24 +01:00
redundant_guards.rs Swap for_each_expr and for_each_expr_with_closures 2024-05-19 16:47:02 +00:00
redundant_pattern_match.rs Swap for_each_expr and for_each_expr_with_closures 2024-05-19 16:47:02 +00:00
rest_pat_in_fully_bound_struct.rs Merge commit 'edb720b199083f4107b858a8761648065bf38d86' into clippyup 2023-11-16 19:13:24 +01:00
significant_drop_in_scrutinee.rs Track lifetime on values with significant drop 2024-05-23 00:37:02 +08:00
single_match.rs Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
try_err.rs Merge commit 'edb720b199083f4107b858a8761648065bf38d86' into clippyup 2023-11-16 19:13:24 +01:00
wild_in_or_pats.rs Merge commit '57b3c4b90f4346b3990c1be387c3b3ca7b78412c' into clippyup 2022-02-10 18:40:06 +01:00