Skip to content
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

0.2: Fix compilation when "nightly" feature is enabled #1056

Merged
merged 1 commit into from
Jul 2, 2018

Conversation

ngg
Copy link
Contributor

@ngg ngg commented Jun 29, 2018

Some of the crates are not compiling with the latest nightly compiler when "nightly" feature is enabled (because of rust-lang/rust#51730).
Please release a new version of the "futures-core-preview", "futures-stable-preview" and "futures-async-runtime-preview" after merging this.

@@ -1,6 +1,7 @@
use futures::stable::block_on_stable;
use futures::executor::{block_on, ThreadPool};
use futures::prelude::*;
use futures::prelude::await;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ngg Is await not included automatically by the * import above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this the compiler gives an error "error[E0659]: await is ambiguous", "note: await could refer to the name imported here" (referring to the prelude), "note: await is also a builtin macro", "note: consider adding an explicit import of await to disambiguate". Explicitly importing it solves this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, gotcha. Thanks for explaining!

@cramertj cramertj merged commit 676baa4 into rust-lang:master Jul 2, 2018
@cramertj
Copy link
Member

cramertj commented Jul 2, 2018

@ngg I've published the updates to these three crates. Thanks for fixing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants