-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add edition = "2018" to tokio-async-await #935
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me 👍 I would say this crate is fine to expect people to be on the latest version of the compiler.
The reason I didn't set it to 2018 before was that it broke older cargo versions. Because I'm not sure what changed to make CI pass, so I would do a bit more investigation first. |
our CI system updated to the latest nightly and started to fail builds, it has to be something with today's nightly update |
Line 3 in 8016230
I also can see async fn used in tokio crate, so i'd imagine similar issue there |
my apologies, our original error came from the tokio crate itself, not just tokio-async-await
nightly-x86_64-pc-windows-msvc rustc 1.34.0-nightly (7e001e5c6 2019-02-27) |
Rust 1.26 does not know the edition key, so the build passes, but it fails on Rust 1.27-1.30. |
This change is due to rust-lang/rust#58678 and applies nightly-2019-02-28 (7e001e5c6 2019-02-27) or later. |
Also, it cannot avoid this error by change tokio-async-await to 2018 edition (the current tokio-async-await does not have async fn, only tokio has async fn). |
I think the only option here will be to remove usage of the |
tokio-await-async has some |
Closing in favor of #940. Thanks for doing the initial debugging / work though 👍 |
Motivation
Recently some of our builds started to fail with error in tokio-async-await (i suspect fresh nightly came out):
turns out this crate does not have 2018 edition requirement
Solution
add edition="2018"