Skip to content

Tracking issue for MCP 1016: MCP: Add -Zasync-panic for binary size #164106

Open

Description

@rustbot

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

Unresolved questions

None so far.

Implementation history

Empty so far.


@diondokter, consider @rustbot claim'ing the work.

Activity

  1. added
    T-compiler
    C-tracking-issue
    S-tracking-unimplemented
    B-MCP-approved
    on Oct 10, 2026
  2. tmandry commented on Oct 13, 2026

    @tmandry
    Member

    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.

  3. added
    T-lang
    I-lang-radar
    on Oct 13, 2026
  4. diondokter commented on Oct 21, 2026

    @diondokter
    Member

    @rustbot claim

  5. added a commit that references this issue on Oct 21, 2026
  6. added a commit that references this issue on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

B-MCP-approvedC-tracking-issueI-lang-radarS-tracking-unimplementedT-compilerT-lang

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions