Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prereq5 for async drop - AsyncDropGlue & FutureDropPoll instances preparation #129740

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

azhogin
Copy link
Contributor

@azhogin azhogin commented Aug 29, 2024

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

AsyncDropGlue instance for async_drop_in_place<T>(...)::{{closure0}} shim generation for not coroutine type.
FutureDropPoll instance for async_drop_in_place<T>(...)::{{closure0}} shim generation for coroutine type.

Those have different behaviour, because for normal type we are generating normal (sync) drop glue generation using drop elaboration and then StateTransform pass for transformation into coroutine (later commits). And for coroutine we need to poll this coroutine async drop poll function with the same coroutine layout.

Review only last commit, based on previous PR #129739

@rustbot rustbot added 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) labels Aug 29, 2024
@rustbot
Copy link
Collaborator

rustbot commented Aug 29, 2024

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

This PR changes Stable MIR

cc @oli-obk, @celinval, @ouz-a

Some changes occurred in compiler/rustc_codegen_cranelift

cc @bjorn3

Some changes occurred to the CTFE / Miri engine

cc @rust-lang/miri

This PR changes MIR

cc @oli-obk, @RalfJung, @JakobDegen, @davidtwco, @celinval, @vakaras

@azhogin azhogin marked this pull request as draft August 30, 2024 09:09
@azhogin azhogin force-pushed the azhogin/async-drop-prereq5-instances-preparation branch from 6f6d305 to 8dd8360 Compare August 30, 2024 09:29
@azhogin azhogin force-pushed the azhogin/async-drop-prereq5-instances-preparation branch from 8dd8360 to 379555a Compare September 7, 2024 15:04
@rust-log-analyzer

This comment has been minimized.

@azhogin azhogin force-pushed the azhogin/async-drop-prereq5-instances-preparation branch from 379555a to 175820b Compare September 7, 2024 17:26
@bors
Copy link
Contributor

bors commented Sep 8, 2024

☔ The latest upstream changes (presumably #129313) made this pull request unmergeable. Please resolve the merge conflicts.

@azhogin azhogin force-pushed the azhogin/async-drop-prereq5-instances-preparation branch from 175820b to 62d37f8 Compare September 8, 2024 13:16
@bors
Copy link
Contributor

bors commented Sep 9, 2024

☔ The latest upstream changes (presumably #130165) made this pull request unmergeable. Please resolve the merge conflicts.

@davidtwco
Copy link
Member

r? @nikomatsakis is going to look into this

@rustbot rustbot assigned nikomatsakis and unassigned davidtwco Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

6 participants