-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Remove the old await! macro #60675
Remove the old await! macro #60675
Conversation
This doesn't work anymore, and its continued presence is cause for confusion.
(rust_highfive has picked a reviewer for you, use r? to override) |
Hmm... I thought that we could fix this by changing macro_rules! r#await {
($e:expr) => {
$e.await
}
} However, if it is difficult, I think this PR is fine. |
I was also assuming that we would change |
@taiki-e Unfortunately that doesn't work because we ban |
@nikomatsakis I think that'd still be confusing since |
The current |
@cramertj oh, I didn't realize that. Never mind, then. |
@taiki-e yeah, we could do that, but people could also do that in an external library, and as I mentioned to @nikomatsakis, I think it runs the risk of being more confusing than helpful. |
Oh, that makes sense. |
@bors r=nikomatsakis,Centril |
📌 Commit df41e4f has been approved by |
…akis,Centril Remove the old await! macro This doesn't work anymore, and its continued presence is cause for confusion. `yield` can no longer be used to return `Pending` from an `async` body. cc rust-lang#60660 cc @taiki-e cc tokio-rs/tokio#1080
Rollup of 8 pull requests Successful merges: - #59348 (Clean up and add tests for slice drop shims) - #60188 (Identify when a stmt could have been parsed as an expr) - #60234 (std: Derive `Default` for `io::Cursor`) - #60618 (Comment ext::tt::transcribe) - #60648 (Skip codegen for one UI test with long file path) - #60671 (remove unneeded `extern crate`s from build tools) - #60675 (Remove the old await! macro) - #60676 (Fix async desugaring providing wrong input to procedural macros.) Failed merges: r? @ghost
This doesn't work anymore, and its continued presence is cause for confusion.
yield
can no longer be used to returnPending
from anasync
body.cc #60660
cc @taiki-e
cc tokio-rs/tokio#1080