-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Prereq3 for async drop - LangItem registration for async_drop_in_place()::{{closure0}} #129737
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Prereq3 for async drop - LangItem registration for async_drop_in_place()::{{closure0}} #129737
Conversation
Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri This PR changes Stable MIR cc @oli-obk, @celinval, @ouz-a This PR changes MIR cc @oli-obk, @RalfJung, @JakobDegen, @davidtwco, @celinval, @vakaras Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
7a0329a
to
3c5bee0
Compare
d8c1a84
to
50aea7e
Compare
☔ The latest upstream changes (presumably #130724) made this pull request unmergeable. Please resolve the merge conflicts. |
r? @nikomatsakis is going to look into this |
50aea7e
to
c561fb9
Compare
☔ The latest upstream changes (presumably #136751) made this pull request unmergeable. Please resolve the merge conflicts. |
c561fb9
to
3534899
Compare
☔ The latest upstream changes (presumably #136943) made this pull request unmergeable. Please resolve the merge conflicts. |
@@ -191,6 +191,7 @@ language_item_table! { | |||
AsyncDrop, sym::async_drop, async_drop_trait, Target::Trait, GenericRequirement::Exact(0); | |||
AsyncDestruct, sym::async_destruct, async_destruct_trait, Target::Trait, GenericRequirement::Exact(0); | |||
AsyncDropInPlace, sym::async_drop_in_place, async_drop_in_place_fn, Target::Fn, GenericRequirement::Exact(1); | |||
AsyncDropInPlacePoll, sym::async_drop_in_place_poll, async_drop_in_place_poll_fn, Target::Closure, GenericRequirement::Exact(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EDIT: nevermind I misunderstood.
Uh... that's a fancy lang item. I'll need to think about this
3534899
to
9438880
Compare
☔ The latest upstream changes (presumably #139417) made this pull request unmergeable. Please resolve the merge conflicts. |
9438880
to
f50379a
Compare
f50379a
to
900a391
Compare
☔ The latest upstream changes (presumably #140282) made this pull request unmergeable. Please resolve the merge conflicts. |
This is subpart 3 PR of #123948, just for review purposes.
We have
async_drop_in_place
lang item forasync fn async_drop_in_place<T>(...)
.But we also need to generate shim for its returning value - coroutine
async_drop_in_place<T>::{{closure0}}
.So, we need to bind some lang item to it. This patch registers
LangItem::AsyncDropInPlacePoll
for coroutine, when its constructor function isLangItem::AsyncDropInPlace
.Review only last commit, based on previous PR #129736