Files
rust/compiler/rustc_ast_lowering
Jonathan Brouwer cf24767d6e Rollup merge of #157738 - TaKO8Ki:move-expr-coroutine-closures, r=nikomatsakis
Support move expressions in coroutine closures

This adds `move(expr)` support for coroutine closures.

- [x] Support for move expressions in coroutine closures
- [x] Support for move expressions in async blocks

RFC: https://github.com/rust-lang/rfcs/pull/3968
Tracking issue: https://github.com/rust-lang/rust/issues/155050
Project goal:
- https://github.com/rust-lang/rust-project-goals/issues/107
- https://rust-lang.github.io/rust-project-goals/2026/ergonomic-rc.html

I used AI to write the tests and reviewed them myself.

r? @nikomatsakis
2026-09-08 23:32:13 +02:00
..