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

Fix the build #252

Closed
zhengyi-yang opened this issue Aug 6, 2019 · 3 comments

Comments

@zhengyi-yang
Copy link

commented Aug 6, 2019

I'm building this crate using rustc 1.38.0-nightly (c4715198b 2019-08-05), unfortunately I got the following errors:

➜  tarpc git:(master) ✗ cargo build    
   Compiling tarpc-lib v0.6.1
   Compiling tarpc-lib v0.6.1 (/Data/Share/Code/tarpc/rpc)
error[E0432]: unresolved import `futures::try_ready`
  --> /home/zhengyi/.cargo/registry/src/github.com-1ecc6299db9ec823/tarpc-lib-0.6.1/src/server/mod.rs:21:5
   |
21 |     try_ready,
   |     ^^^^^^^^^ no `try_ready` in the root

error: cannot determine resolution for the macro `try_ready`
   --> /home/zhengyi/.cargo/registry/src/github.com-1ecc6299db9ec823/tarpc-lib-0.6.1/src/server/mod.rs:337:17
    |
337 |                 try_ready!(self.as_mut().channel().poll_flush(cx));
    |                 ^^^^^^^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error[E0437]: type `SinkError` is not a member of trait `Sink`
  --> /home/zhengyi/.cargo/registry/src/github.com-1ecc6299db9ec823/tarpc-lib-0.6.1/src/transport/channel.rs:54:5
   |
54 |     type SinkError = io::Error;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `Sink`

error[E0437]: type `SinkError` is not a member of trait `Sink`
  --> /home/zhengyi/.cargo/registry/src/github.com-1ecc6299db9ec823/tarpc-lib-0.6.1/src/transport/mod.rs:86:5
   |
86 |     type SinkError = S::SinkError;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `Sink`

error[E0658]: async closures are unstable
   --> /home/zhengyi/.cargo/registry/src/github.com-1ecc6299db9ec823/tarpc-lib-0.6.1/src/server/mod.rs:488:13
    |
488 |             async move |result| {
    |             ^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62290
    = help: add `#![feature(async_closure)]` to the crate attributes to enable

error[E0220]: associated type `SinkError` not found for `futures_sink::Sink<<Self as transport::Transport>::SinkItem>`
  --> /home/zhengyi/.cargo/registry/src/github.com-1ecc6299db9ec823/tarpc-lib-0.6.1/src/transport/mod.rs:27:47
   |
27 |     Self: Sink<<Self as Transport>::SinkItem, SinkError = io::Error>,
   |                                               ^^^^^^^^^^^^^^^^^^^^^ associated type `SinkError` not found

error[E0220]: associated type `SinkError` not found for `Self`
  --> /home/zhengyi/.cargo/registry/src/github.com-1ecc6299db9ec823/tarpc-lib-0.6.1/src/transport/channel.rs:68:82
   |
68 |     fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::SinkError>> {
   |                                                                                  ^^^^^^^^^^^^^^^ associated type `SinkError` not found

error[E0220]: associated type `SinkError` not found for `S`
  --> /home/zhengyi/.cargo/registry/src/github.com-1ecc6299db9ec823/tarpc-lib-0.6.1/src/transport/mod.rs:88:67
   |
88 |     fn start_send(self: Pin<&mut Self>, item: Item) -> Result<(), S::SinkError> {
   |                                                                   ^^^^^^^^^^^^ associated type `SinkError` not found

error[E0220]: associated type `SinkError` not found for `S`
  --> /home/zhengyi/.cargo/registry/src/github.com-1ecc6299db9ec823/tarpc-lib-0.6.1/src/transport/mod.rs:92:82
   |
92 |     fn poll_ready(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), S::SinkError>> {
   |                                                                                  ^^^^^^^^^^^^ associated type `SinkError` not found

error[E0220]: associated type `SinkError` not found for `S`
  --> /home/zhengyi/.cargo/registry/src/github.com-1ecc6299db9ec823/tarpc-lib-0.6.1/src/transport/mod.rs:96:82
   |
96 |     fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), S::SinkError>> {
   |                                                                                  ^^^^^^^^^^^^ associated type `SinkError` not found

error[E0220]: associated type `SinkError` not found for `S`
   --> /home/zhengyi/.cargo/registry/src/github.com-1ecc6299db9ec823/tarpc-lib-0.6.1/src/transport/mod.rs:100:82
    |
100 |     fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), S::SinkError>> {
    |                                                                                  ^^^^^^^^^^^^ associated type `SinkError` not found

error[E0220]: associated type `SinkError` not found for `futures_sink::Sink<SinkItem>`
  --> /home/zhengyi/.cargo/registry/src/github.com-1ecc6299db9ec823/tarpc-lib-0.6.1/src/transport/mod.rs:48:23
   |
48 |     S: Sink<SinkItem, SinkError = io::Error>,
   |                       ^^^^^^^^^^^^^^^^^^^^^ associated type `SinkError` not found

error[E0220]: associated type `SinkError` not found for `futures_sink::Sink<SinkItem>`
   --> /home/zhengyi/.cargo/registry/src/github.com-1ecc6299db9ec823/tarpc-lib-0.6.1/src/transport/mod.rs:109:26
    |
109 |     Self: Sink<SinkItem, SinkError = io::Error>,
    |                          ^^^^^^^^^^^^^^^^^^^^^ associated type `SinkError` not found

error[E0220]: associated type `SinkError` not found for `S`
  --> /home/zhengyi/.cargo/registry/src/github.com-1ecc6299db9ec823/tarpc-lib-0.6.1/src/transport/mod.rs:86:22
   |
86 |     type SinkError = S::SinkError;
   |                      ^^^^^^^^^^^^ associated type `SinkError` not found

error: aborting due to 14 previous errors

Some errors have detailed explanations: E0220, E0432, E0437, E0658.
For more information about an error, try `rustc --explain E0220`.
error: Could not compile `tarpc-lib`.
warning: build failed, waiting for other jobs to finish...
error: build failed

Is it possible to fix this? Thanks

@tikue

This comment has been minimized.

Copy link
Collaborator

commented Aug 6, 2019

Thanks for the report! If you're using a very recent rustc, you'll need to use the master branch, which builds on the latest nightly compiler. A new version will be published soon to crates.io, but there will be many breaking changes in the next version, so I'm trying to finish making the changes before publishing.

@zhengyi-yang

This comment has been minimized.

Copy link
Author

commented Aug 6, 2019

Thanks!

@tikue

This comment has been minimized.

Copy link
Collaborator

commented Aug 6, 2019

No problem! I'll close this bug, unless you think there's anything else worth tracking here?

@tikue tikue closed this Aug 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.