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.
yieldcan no longer be used to returnPendingfrom anasyncbody.cc #60660
cc @taiki-e
cc tokio-rs/tokio#1080