Repository navigation
Description
This is a tracking issue for MCP "MCP: Add -Zasync-panic for binary size" (rust-lang/compiler-team#1016).
In short:
Add a flag to the compiler that allows users to turn off the panics in generated async code.
Instead of panicking, the code would return Poll::Pending. This saves on binary size (and possibly runtime performance).
Note
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports.
Instead, open a dedicated issue for the specific matter, link to this tracking issue and ping the MCP author.
Alternatively, post in the Zulip stream linked from the MCP.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.
Steps
- Implement the MCP
- Adjust the documentation
- In the Rust Compiler Development Guide if applicable (e.g., for refactorings)
- In the Rust Forge if applicable (e.g., for policy changes)
- In the rustc book if applicable (e.g., for target tier or CLI changes)
- In the Unstable Book if applicable (e.g., for unstable CLI changes)
Unresolved questions
None so far.
Implementation history
Empty so far.
@diondokter, consider @rustbot claim'ing the work.
Activity
tmandry commentedon Oct 13, 2026
This is also a lang experiment. As noted in #163678 (comment), the lang team is fine with this going forward on nightly, but it has reservations about it stabilizing. Lang would need to FCP such a stabilization.
diondokter commentedon Oct 21, 2026
@rustbot claim
Rollup merge of rust-lang#164683 - diondokter:async-panic, r=wesleywiser
Unrolled build for #164683 in rollup 164713