Skip to content

0.99.7 cannot built on centos. #249

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

Closed
weiby3 opened this issue Sep 27, 2019 · 3 comments
Closed

0.99.7 cannot built on centos. #249

weiby3 opened this issue Sep 27, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@weiby3
Copy link

weiby3 commented Sep 27, 2019

hello world project from readme, use cargo +beta run, and got:

   Compiling async-std v0.99.7
error[E0599]: no method named `initializer` found for type `std::pin::Pin<&mut R>` in the current scope
  --> /home/weiby3/.cargo/registry/src/code.aliyun.com-738b7dba08a2a41e/async-std-0.99.7/src/io/read/read_to_end.rs:67:20
   |
67 |                 rd.initializer().initialize(&mut g.buf[g.len..]);
   |                    ^^^^^^^^^^^ method not found in `std::pin::Pin<&mut R>`
   |
   = help: items from traits can only be used if the trait is implemented and in scope
   = note: the following trait defines an item `initializer`, perhaps you need to implement it:
           candidate #1: `std::io::Read`

error: aborting due to previous error

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

To learn more, run the command again with --verbose.

rustc version: rustc 1.39.0-beta.1 (968967007 2019-09-24)
os: centos 7

@yoshuawuyts yoshuawuyts added the bug Something isn't working label Sep 27, 2019
@yoshuawuyts
Copy link
Contributor

We've discussed this in chat, and we'll be putting out a 0.99.8 release ahead of schedule to address this. Thanks for reporting!

@edwardw
Copy link

edwardw commented Sep 28, 2019

Run into the same issue myself. Before the release of 0.99.8, a temporary workaround is to pin futures crate versions oneself if possible by adding:

futures-core-preview = "=0.3.0-alpha.18"
futures-io-preview = "=0.3.0-alpha.18"

to project's dependencies.

@skade
Copy link
Collaborator

skade commented Sep 28, 2019

I published 0.99.8 with the fix mentioned above. Thanks for the report!

@skade skade closed this as completed Sep 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants