Uh oh!
There was an error while loading. Please reload this page.
Remove the old await! macro - #60675
Conversation
This doesn't work anymore, and its continued presence is cause for confusion.
rust-highfive
commented
May 9, 2019
(rust_highfive has picked a reviewer for you, use r? to override) |
taiki-e
commented
May 9, 2019
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. |
nikomatsakis
commented
May 9, 2019
I was also assuming that we would change |
cramertj
commented
May 9, 2019
@taiki-e Unfortunately that doesn't work because we ban |
cramertj
commented
May 9, 2019
@nikomatsakis I think that'd still be confusing since |
taiki-e
commented
May 9, 2019
The current |
nikomatsakis
commented
May 9, 2019
@cramertj oh, I didn't realize that. Never mind, then. |
cramertj
commented
May 9, 2019
@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. |
taiki-e
commented
May 9, 2019
Oh, that makes sense. |
Centril
commented
May 9, 2019
@bors r=nikomatsakis,Centril |
bors
commented
May 9, 2019
📌 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