Summary
Add optimisations to the coroutine MIR transform to elide or simplify the generated statemachines.
This will help both async futures and generators.
Note: This has some overlap with this other proposal.
I'm not trying to usurp the issue. I was working on it incidentally at the same time and noticed very late that proposal already existed.
Tasks and status
Note: we have updated the body to match the 2026 goal. Your original text is preserved below.
Details
Summary
Add optimisations to the coroutine MIR transform to elide or simplify the generated statemachines.
This will help both async futures and generators.
Note: This has some overlap with this other proposal.
I'm not trying to usurp the issue. I was working on it incidentally at the same time and noticed very late that proposal already existed.
Tasks and status
Summary
Add optimisations to the coroutine MIR transform to elide or simplify the generated statemachines.
This will help both async futures and generators.
Note: This has some overlap with this other proposal.
I'm not trying to usurp the issue. I was working on it incidentally at the same time and noticed very late that proposal already existed.
Tasks and status
Note: we have updated the body to match the 2026 goal. Your original text is preserved below.
Details
Summary
Add optimisations to the coroutine MIR transform to elide or simplify the generated statemachines.
This will help both async futures and generators.
Note: This has some overlap with this other proposal.
I'm not trying to usurp the issue. I was working on it incidentally at the same time and noticed very late that proposal already existed.
Tasks and status