about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-07-25 17:51:02 +0000
committerbors <bors@rust-lang.org>2024-07-25 17:51:02 +0000
commitc7cfe7f5e2342926be57aef704f686637f7b8bd0 (patch)
tree89cc6cb951247cd5693b6dd5bc4bb7f03cb5c9e4 /tests/codegen/patchable-function-entry
parent37f4fbb92913586b73a35772efd00eccd1cbbe13 (diff)
parentde1e1637795cae6bb19191f1afb1ab847ed10240 (diff)
downloadrust-c7cfe7f5e2342926be57aef704f686637f7b8bd0.tar.gz
rust-c7cfe7f5e2342926be57aef704f686637f7b8bd0.zip
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
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions