Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Fix compile ia error #11

Merged
merged 1 commit into from
May 6, 2018
Merged

Conversation

qwerty2501
Copy link
Contributor

In the rustc and cargo 1.27.0-nightly, I saw compile error when compiling ia as below.

error[E0658]: The `!` type is experimental (see issue #35121)
 --> src/executor.rs:7:51
  |
7 |     fut: UnsafeCell<Box<Future<Item = (), Error = !> + 'static>>
  |                                                   ^
  |
  = help: add #![feature(never_type)] to the crate attributes to enable

error[E0658]: The `!` type is experimental (see issue #35121)
  --> src/executor.rs:11:47
   |
11 |     fn new(fut: Box<Future<Item = (), Error = !> + 'static>) -> TaskInfo {
   |                                               ^
   |
   = help: add #![feature(never_type)] to the crate attributes to enable

error[E0658]: The `!` type is experimental (see issue #35121)
  --> src/executor.rs:17:64
   |
17 |     fn get_future(&self) -> &mut Box<Future<Item = (), Error = !> + 'static> {
   |                                                                ^
   |
   = help: add #![feature(never_type)] to the crate attributes to enable

error[E0658]: The `!` type is experimental (see issue #35121)
  --> src/utils.rs:14:18
   |
14 |     type Error = !;
   |                  ^
   |
   = help: add #![feature(never_type)] to the crate attributes to enable

error[E0658]: The `!` type is experimental (see issue #35121)
  --> src/utils.rs:18:28
   |
18 |     ) -> Result<Async<()>, !> {
   |                            ^
   |
   = help: add #![feature(never_type)] to the crate attributes to enable

error[E0658]: The `!` type is experimental (see issue #35121)
  --> src/net.rs:18:18
   |
18 |     type Error = !;
   |                  ^
   |
   = help: add #![feature(never_type)] to the crate attributes to enable

error[E0658]: The `!` type is experimental (see issue #35121)
  --> src/net.rs:22:47
   |
22 |     ) -> Result<Async<Option<TcpConnection>>, !> {
   |                                               ^
   |
   = help: add #![feature(never_type)] to the crate attributes to enable

error: aborting due to 7 previous errors

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `ia`.

It seems to need feature attribute.
So I added feature never_type attribute.

because it seems to need feature attribute.
@losfair losfair merged commit 7f80707 into losfair:master May 6, 2018
@losfair
Copy link
Owner

losfair commented May 6, 2018

Seems to be related to rust-lang/rust#50121

@qwerty2501
Copy link
Contributor Author

It seems like that.

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

Successfully merging this pull request may close these issues.

2 participants