-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Attempting to run an async fn after completion mentions generators #65419
Comments
Hey @Zoxc -- where does this error come from, anyway? A quick ripgrep of the source didn't find an obvious source. |
Is it from the |
Yeah that's it. |
OK, yes, that's what I meant. So to fix this we presumably want to:
We would need to get access to the rust/src/librustc_mir/transform/generator.rs Lines 989 to 995 in 437ca55
Right now, I don't think that is stored in the MIR, but we could easily do do (I'd rather not retrieve it from the HIR). Sound about right? |
@rustbot claim |
Hi @nikomatsakis, that makes sense. I'll lean on @gilescope for initial guidance on this and I'll add more comments after I dig a little deeper. Cheers, David |
…r=oli-obk Async fn resume after completion #65419 -- Attempting to run an async fn after completion mentions generators Not yet ready for review - work in progress Just need to run the tests on a proper build server
…r=oli-obk Async fn resume after completion #65419 -- Attempting to run an async fn after completion mentions generators Not yet ready for review - work in progress Just need to run the tests on a proper build server
@tmandry we can close this one - @ninjasource has fixed this. |
If a user attempts to do something like this (playground including trivial executor):
they get a panic talking about generators:
This issue has been assigned to @ninjasource via this comment.
The text was updated successfully, but these errors were encountered: