-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
base: master
Are you sure you want to change the base?
Prereq5 for async drop - AsyncDropGlue & FutureDropPoll instances preparation #129740
Conversation
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 |
6f6d305
to
8dd8360
Compare
8dd8360
to
379555a
Compare
This comment has been minimized.
This comment has been minimized.
379555a
to
175820b
Compare
☔ The latest upstream changes (presumably #129313) made this pull request unmergeable. Please resolve the merge conflicts. |
…p from previous async drop glue implementation
175820b
to
62d37f8
Compare
☔ The latest upstream changes (presumably #130165) made this pull request unmergeable. Please resolve the merge conflicts. |
r? @nikomatsakis is going to look into this |
This is subpart 5 PR of #123948, just for review purposes.
AsyncDropGlue
instance forasync_drop_in_place<T>(...)::{{closure0}}
shim generation for not coroutine type.FutureDropPoll
instance forasync_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