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

Test support module doesn't compile on recent nightlies #257

Closed
hawkw opened this issue Apr 13, 2018 · 3 comments
Closed

Test support module doesn't compile on recent nightlies #257

hawkw opened this issue Apr 13, 2018 · 3 comments
Labels

Comments

@hawkw
Copy link
Collaborator

hawkw commented Apr 13, 2018

See this CI build against rustc 1.27.0-nightly (eeea94c11 2018-04-06).

Build log
error[E0277]: the trait bound `(): std::convert::From<!>` is not satisfied
  --> tests/support/mod.rs:25:34
   |
25 |             Err(e) => return Err(From::from(e)),
   |                                  ^^^^^^^^^^ the trait `std::convert::From<!>` is not implemented for `()`
   | 
  ::: tests/support/util.rs:34:17
   |
34 |         let _ = try_ready!(self.stream().poll_capacity().map_err(|_| panic!()));
   |                 --------------------------------------------------------------- in this macro invocation
   |
   = help: the following implementations were found:
             <() as std::convert::From<support::mock_io::tokio::tokio_timer::TimerError>>
             <() as std::convert::From<support::mock_io::tokio::tokio_timer::TimeoutError<T>>>
   = note: required by `std::convert::From::from`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.
error: Could not compile `h2`.
warning: build failed, waiting for other jobs to finish...
error[E0277]: the trait bound `(): std::convert::From<!>` is not satisfied
  --> tests/support/mod.rs:25:34
   |
25 |             Err(e) => return Err(From::from(e)),
   |                                  ^^^^^^^^^^ the trait `std::convert::From<!>` is not implemented for `()`
   | 
  ::: tests/support/util.rs:34:17
   |
34 |         let _ = try_ready!(self.stream().poll_capacity().map_err(|_| panic!()));
   |                 --------------------------------------------------------------- in this macro invocation
   |
   = help: the following implementations were found:
             <() as std::convert::From<support::mock_io::tokio::tokio_timer::TimerError>>
             <() as std::convert::From<support::mock_io::tokio::tokio_timer::TimeoutError<T>>>
   = note: required by `std::convert::From::from`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.
error: Could not compile `h2`.
To learn more, run the command again with --verbose.
The command "cargo build --tests --features unstable" exited with 101.
@hawkw hawkw added the bug label Apr 13, 2018
@carllerche
Copy link
Collaborator

I would probably recommend filing a bug on the rust repo.

@hawkw
Copy link
Collaborator Author

hawkw commented Apr 13, 2018

@carllerche looks like there's already an issue (rust-lang/rust#49932) tracking this.

@carllerche
Copy link
Collaborator

This has been fixed in Rust.

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

No branches or pull requests

2 participants