rust/clippy_lints/src/functions
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
..
impl_trait_in_params.rs hir: Remove hir::Map::{opt_parent_id,parent_id,get_parent,find_parent} 2024-02-10 12:24:46 +03:00
misnamed_getters.rs Merge remote-tracking branch 'upstream/master' into rustup 2024-05-30 09:44:14 +02:00
mod.rs For restriction lints, replace “Why is this bad?” with “Why restrict this?” 2024-05-23 15:51:33 -07:00
must_use.rs Swap for_each_expr and for_each_expr_with_closures 2024-05-19 16:47:02 +00:00
not_unsafe_ptr_arg_deref.rs Auto merge of #12822 - Alexendoo:for-each-expr, r=dswij 2024-06-07 09:42:37 +00:00
renamed_function_params.rs Merge commit '2efebd2f0c' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
result.rs Always use ty:: qualifier for TyKind enum variants. 2024-04-16 16:29:13 +10:00
too_many_arguments.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
too_many_lines.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00