Skip to content

Tracking Issue for async drop codegen #126482

Open

Description

@zetanumbers

This is a tracking issue for the async drop codegen from MCP "727" (rust-lang/compiler-team#727).
The feature gate for the issue is #![feature(async_drop))].

About tracking issues

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 about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
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

Unresolved Questions

Implementation history

Activity

  1. added
    C-tracking-issue
    on Jun 14, 2024
  2. zetanumbers commented on Jun 14, 2024

    @zetanumbers
    ContributorAuthor

    @rustbot label +T-compiler +T-lang +WG-async +A-async-await +F-async-drop

  3. added
    T-lang
    T-compiler
    A-async-await
    WG-async
    F-async_drop
    on Jun 14, 2024
  4. added 2 commits that reference this issue on Jun 17, 2024
  5. added a commit that references this issue on Jun 17, 2024
  6. added a commit that references this issue on Jun 18, 2024
  7. added a commit that references this issue on Jun 19, 2024
  8. added 2 commits that reference this issue on Jun 19, 2024
  9. added a commit that references this issue on Jun 19, 2024
  10. added
    AsyncAwait-Triaged
    on Jul 11, 2024
  11. AndyGauge commented on Jul 14, 2026

    @AndyGauge
    Member

    I'm not sure what is left to do on Union rejects trivially async destructible fields since AsyncDrop requires Drop and Drop throws E0740.

  12. P8L1 commented on Jul 14, 2026

    @P8L1
    Contributor

    @AndyGauge I think the main work still left is the dyn case. I'm unsure about unions at the moment. But I know for a fact dyn has not been handled. I have reached out to @nikomatsakis for advice on a PR to lay the groundwork for dyn earlier this week. (It is an edited version of Zetanumbers's approuch). I am yet to receive a reply. My Zulip is P_L1 catch me there if you want more info about what I want to do!

    Have a good one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-async-awaitAsyncAwait-TriagedC-tracking-issueF-async_dropT-compilerT-langWG-async

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions