Skip to content

Not compiling with nightly-2020-09-22-x86_64-unknown-linux-gnu #883

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
jerry73204 opened this issue Sep 23, 2020 · 5 comments
Closed

Not compiling with nightly-2020-09-22-x86_64-unknown-linux-gnu #883

jerry73204 opened this issue Sep 23, 2020 · 5 comments

Comments

@jerry73204
Copy link
Contributor

async-std does not compile with recent nightly toolchain (nightly-2020-09-22-x86_64-unknown-linux-gnu, to be exact). I personally downgrade the toolchain by rustup default nightly-2020-09-21 to resolve this issue.

   --> /home/user/.cargo/registry/src/github.heygears.com-1ecc6299db9ec823/async-std-1.6.4/src/fs/open_options.rs:303:5
    |
303 |     impl OpenOptionsExt for OpenOptions {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `as_flags` in implementation
    |
    = help: implement the missing item: `fn as_flags(&self) -> std::result::Result<i32, futures_io::Error> { todo!() }`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0046`.
error: could not compile `async-std`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
@yoshuawuyts
Copy link
Contributor

yoshuawuyts commented Sep 23, 2020

Thanks for the report! This appears to be a regression on nightly, see rust-lang/rust#77089 -- for now I recommend pinning to an earlier nightly as we wait on this to be resolved in the stdlib.

@tompro
Copy link

tompro commented Sep 23, 2020

This currently also breaks docs.rs builds:
https://docs.rs/crate/redis_ts/0.2.0

@Fishrock123
Copy link
Member

This is causing issues in downstream CI: http-rs/http-client#45, http-rs/surf#234

@jplatte
Copy link

jplatte commented Sep 24, 2020

Fixed in latest Nightly, via rust-lang/rust#77090.

@jerry73204
Copy link
Contributor Author

It is resolved in recent nightly. It's time to close this issue.

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

No branches or pull requests

5 participants