-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
std::r#await! macro cannot be used even if #![feature(await_macro)] is enabled #60660
Labels
A-async-await
Area: Async & Await
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
@rustbot modify labels: A-async-await, T-compiler. |
rustbot
added
A-async-await
Area: Async & Await
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
May 9, 2019
Reduced:
Seems the actual problem is not about importing but using |
taiki-e
changed the title
If import await! macro as another name, it cannot be used even if #![feature(await_macro)] is enabled
std::r#await! macro cannot be used even if #![feature(await_macro)] is enabled
May 9, 2019
Yeah, I wouldn't expect the old macro to work anymore-- intentionally. |
Opened #60675 to remove the old macro to prevent further confusion. |
Centril
added a commit
to Centril/rust
that referenced
this issue
May 9, 2019
…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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-async-await
Area: Async & Await
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code:
Error:
Seems the second error relates to the fact that
std::await
is still defined usingyield
.rust/src/libstd/macros.rs
Line 378 in 9f83961
Rustc version: rustc 1.36.0-nightly (3f5152e 2019-05-08)
cc @cramertj
The text was updated successfully, but these errors were encountered: