rust/clippy_lints/src/operators
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
..
absurd_extreme_comparisons.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
arithmetic_side_effects.rs Merge commit '20b085d500' into clippy-subtree-update 2024-05-02 17:26:44 +02:00
assign_op_pattern.rs Swap for_each_expr and for_each_expr_with_closures 2024-05-19 16:47:02 +00:00
bit_mask.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
cmp_owned.rs Make builtin_deref just return a Ty 2024-05-09 22:55:00 -04:00
const_comparisons.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
double_comparison.rs Merge commit '10136170fe' into clippy-subtree-update 2024-02-27 15:50:17 +01:00
duration_subsec.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
eq_op.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
erasing_op.rs Merge commit '0cb0f76368' into clippyup 2022-06-30 10:50:09 +02:00
float_cmp.rs Merge commit 'edb720b199' into clippyup 2023-11-16 19:13:24 +01:00
float_equality_without_abs.rs Merge commit 'edb720b199' into clippyup 2023-11-16 19:13:24 +01:00
identity_op.rs Merge commit '93f0a9a91f' into clippy-subtree-update 2024-03-07 17:19:29 +01:00
integer_division.rs Merge commit '0cb0f76368' into clippyup 2022-06-30 10:50:09 +02:00
misrefactored_assign_op.rs Merge commit '93f0a9a91f' into clippy-subtree-update 2024-03-07 17:19:29 +01:00
mod.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
modulo_arithmetic.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
modulo_one.rs Merge commit '0cb0f76368' into clippyup 2022-06-30 10:50:09 +02:00
needless_bitwise_bool.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
numeric_arithmetic.rs Minimize pub usage in source_map.rs. 2023-11-02 19:35:00 +11:00
op_ref.rs Merge commit '10136170fe' into clippy-subtree-update 2024-02-27 15:50:17 +01:00
ptr_eq.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
self_assignment.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
verbose_bit_mask.rs Pack the u128 in LitKind::Int 2024-01-19 20:10:39 -08:00