diff options
| author | bors <bors@rust-lang.org> | 2024-07-25 17:51:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-25 17:51:02 +0000 |
| commit | c7cfe7f5e2342926be57aef704f686637f7b8bd0 (patch) | |
| tree | 89cc6cb951247cd5693b6dd5bc4bb7f03cb5c9e4 /tests/codegen/patchable-function-entry | |
| parent | 37f4fbb92913586b73a35772efd00eccd1cbbe13 (diff) | |
| parent | de1e1637795cae6bb19191f1afb1ab847ed10240 (diff) | |
| download | rust-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
