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

[BUG] Compilation Fails on Latest Nightly #55

Closed
HTGAzureX1212 opened this issue Feb 2, 2021 · 5 comments · Fixed by #56
Closed

[BUG] Compilation Fails on Latest Nightly #55

HTGAzureX1212 opened this issue Feb 2, 2021 · 5 comments · Fixed by #56
Assignees
Labels
bug Something isn't working

Comments

@HTGAzureX1212
Copy link

Description

When building the crate with the latest nightly, the compilation fails with 27 errors.

Prerequisites

  • Rust version : rustc 1.51.0-nightly (d4e3570db 2021-02-01)
  • lexical version: 0.7.4

All of them are E0308 and E0277

@HTGAzureX1212 HTGAzureX1212 added the bug Something isn't working label Feb 2, 2021
@HTGAzureX1212
Copy link
Author

The compilation works on the nightly build on 2021-01-31.

@thomaseizinger
Copy link

@HTGAzureX1212
Copy link
Author

It looks like <integer>::BITS has been stabilized in the standard library, therefore that Limb::BITS resolved into a u32 instead of usize.

@astraw
Copy link

astraw commented Feb 4, 2021

Looks like rust nightly will revert the change until lexical-core can implement a suitable fix.

@rainliu
Copy link

rainliu commented Feb 5, 2021

Got the same error in https://github.com/webrtc-rs/ice/runs/1836585080

Minoru added a commit to newsboat/newsboat that referenced this issue Feb 13, 2021
This fixes the compile error that made 0.7.4 fail to build with recent
Nightly compilers (in turn failing our PRs #1459 and #1461). The change
in Nightly was reverted, giving lexical-core time to get fixed
(Alexhuszagh/rust-lexical#55). Now that that's
done, we can expect the change to be re-introduced into Nightly, and so
we have to update to lexical-core 0.7.5 lest our build breaks again.
dholroyd added a commit to dholroyd/strck that referenced this issue Sep 26, 2021
Needed to avoid Alexhuszagh/rust-lexical#55
in later Rust releases.
TonalidadeHidrica added a commit to TonalidadeHidrica/taiko-untitled that referenced this issue Oct 24, 2021
Without this, bumping Rust version to 1.52.1 would fail.
See Alexhuszagh/rust-lexical#55 for more details.
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

Successfully merging a pull request may close this issue.

5 participants