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

Updating to v1.0.62 cause to error "128-bit type is unstable" #1291

Closed
MaxGraey opened this issue May 27, 2018 · 8 comments
Closed

Updating to v1.0.62 cause to error "128-bit type is unstable" #1291

MaxGraey opened this issue May 27, 2018 · 8 comments
Labels

Comments

@MaxGraey
Copy link

Compiler: 1.28.0-nightly (990d8aa74 2018-05-25)

That happening with any package which depend on serde.

error[E0658]: 128-bit type is unstable (see issue #35118)
   --> <user>/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.62/src/de/value.rs:242:29
    |
242 |     primitive_deserializer!(i128, "an `i128`.", I128Deserializer, visit_i128);
    |                             ^^^^
    |
    = help: add #![feature(i128_type)] to the crate attributes to enable

error[E0658]: 128-bit type is unstable (see issue #35118)
   --> <user>/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.62/src/de/value.rs:243:29
    |
243 |     primitive_deserializer!(u128, "a `u128`.", U128Deserializer, visit_u128);
    |                             ^^^^
    |
    = help: add #![feature(i128_type)] to the crate attributes to enable

...
@dtolnay
Copy link
Member

dtolnay commented May 27, 2018

Those types are definitely stable in 1.28.0-nightly. They were stabilized back in 1.26.0. Announcement: https://blog.rust-lang.org/2018/05/10/Rust-1.26.html#128-bit-integers. Could you double check what compiler version you are building with?

@MaxGraey
Copy link
Author

MaxGraey commented May 27, 2018

rustc --version
rustc 1.28.0-nightly (990d8aa74 2018-05-25)

Usually I compiled to release wasm target which using nightly version.

Compiled with verbose:

process didn't exit successfully: `rustc --crate-name serde <user>/.cargo/registry/src/github.com-
1ecc6299db9ec823/serde-1.0.62/src/lib.rs --color always --error-format json 
--crate-type lib 
--emit=dep-info,link -C opt-level=s 
--cfg feature="default" 
--cfg feature="std" -C 
metadata=e72b63623fc9ecc3 
-C extra-filename=-e72b63623fc9ecc3 
--out-dir <path-to-project>/target/release/deps -L 
dependency=<path-to-project>/target/release/deps --cap-lints allow 
--cfg de_boxed_c_str 
--cfg de_rc_dst 
--cfg integer128` (exit code: 101)

@dtolnay
Copy link
Member

dtolnay commented May 27, 2018

A nightly from 2018-03-04 is quite old. The expectation when using nightlies is that you update the compiler every night. Rarely do crates support old nightlies.

Can you give it a try with the most recent nightly?

@hcpl
Copy link
Contributor

hcpl commented May 27, 2018

rustc --version
rustc 1.26.0-nightly (259e4a678 2018-03-04)

They were stabilized on March 27th: rust-lang/rust#49101 (comment).

@MaxGraey
Copy link
Author

MaxGraey commented May 27, 2018

@dtolnay Hmm, It pretty strange:
In my project directory:

rustup run nightly rustc --version
rustc 1.28.0-nightly (990d8aa74 2018-05-25)

But command

rustc --version
rustc 1.26.0-nightly (259e4a678 2018-03-04)

In other directories I got rustc 1.28.0-nightly (990d8aa74 2018-05-25)

Sorry for may be stupid questions. I'm not advanced user of rust and its toolchain

@dtolnay
Copy link
Member

dtolnay commented May 27, 2018

I would recommend hopping into the #rust IRC channel on irc.mozilla.org and asking for help removing the old nightly. They are pretty good at sorting this stuff out.

@MaxGraey
Copy link
Author

Thanks! 👍

@dtolnay dtolnay closed this as completed May 27, 2018
@MaxGraey
Copy link
Author

MaxGraey commented May 27, 2018

Ok, I find out by myself how this repair. Solution:
In current directory just run rustup override unset.
Anyway thank you for your patience :)

@dtolnay dtolnay added the support label Jun 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants