Skip to content

Subpart11 for async drop (major5) - shims codegen#129747

Closed
azhogin wants to merge 11 commits intorust-lang:masterfrom
azhogin:azhogin/async-drop-subpart11-shims-codegen
Closed

Subpart11 for async drop (major5) - shims codegen#129747
azhogin wants to merge 11 commits intorust-lang:masterfrom
azhogin:azhogin/async-drop-subpart11-shims-codegen

Conversation

@azhogin
Copy link
Copy Markdown
Contributor

@azhogin azhogin commented Aug 29, 2024

This is subpart 11 PR of #123948, just for review purposes.

Shims for:

  • AsyncDropGlueCtorShim : async_drop_in_place<T>(dropee) -> async_drop_in_place<T>(dropee)::{{closure0}}
  • AsyncDropGlue: async_drop_in_place<T>(dropee)::{{closure0}} for non-coroutine dropee types. When we need to generate drop glue (ladder) using drop elaboration and then StateTransform it into coroutine poll function.
  • FutureDropPoll: async_drop_in_place<T>(dropee)::{{closure0}} for coroutine dropee types. When we need to proxy call already generated coroutine_drop_async (produced in StateTransform pass of the coroutine T).

Review only last commit, based on previous PR #129746.

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

Labels

F-async_drop `#![feature(async_drop)]` S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants