about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-07 09:42:37 +0000
committerbors <bors@rust-lang.org>2024-06-07 09:42:37 +0000
commit0f87a81882f1a110b6d11c18a2223723984d10dd (patch)
treec06115128ee001358d9daf69aea6f3a269f73d6e /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
parent0b441d5ac5934eecb4254f71a8557cf9cb6b882e (diff)
parent68e7356b7eb2037295aa81332b15e184c0974b5e (diff)
downloadrust-0f87a81882f1a110b6d11c18a2223723984d10dd.tar.gz
rust-0f87a81882f1a110b6d11c18a2223723984d10dd.zip
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
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions