-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Could not compile lexical-core on latest nightly, possibly a type checker issue? #81654
Comments
Some errors:
|
I have the exactly same issue. |
Same issue. rustc 1.51.0-nightly (d4e3570 2021-02-01) |
This is failing because This constant is a Unfortunately, breaking things like this is always a risk when stabilizing new methods or constants. |
So would it be more of an issue on |
It wasn't really a bug in
Depending on how big the fallout is, we might want to (temporarily) roll the stabilization of |
Makes sense. |
However, those warnings are only visible when comping the crate directly (or as a local dependency), not when compiling it as an remote dependency, to avoid flooding people with warnings for crates they are not working on. |
I wished I could just clone the crate and make the changes myself, but the only issue is it is a dependency used by sqlformat which is a dependency used by sqlx. Is there some way to force sqlformat to use my local version instead of the remote version on crates.io? |
@HTG-YT Yes, that should be possible with a |
Thanks |
See rust-lang/rust#81654 for more details
@HTG-YT I have the same problem. Did you do a |
Yes, I cloned the repository of lexical-core and made the fixes myself. |
Do you have a pointer to this fix ? |
@catenacyber See Alexhuszagh/rust-lexical#56 Looks like the maintainer of |
In the meantime, you can pop this in your root [patch.crates-io]
lexical-core = {git = 'https://github.com/Gelbpunkt/rust-lexical', branch = 'fix-warnings-and-update-deps'} |
We are reverting stabilization of |
…mulacrum Revert stabilizing integer::BITS. We agreed in the libs meeting just now to revert stablization, since the [breakage](rust-lang#81654) is significant throughout the ecosystem, through `lexical-core`. cc rust-lang#76904 Fixes rust-lang#81654
…mulacrum Revert stabilizing integer::BITS. We agreed in the libs meeting just now to revert stablization, since the [breakage](rust-lang#81654) is significant throughout the ecosystem, through `lexical-core`. cc rust-lang#76904 Fixes rust-lang#81654
…mulacrum Revert stabilizing integer::BITS. We agreed in the libs meeting just now to revert stablization, since the [breakage](rust-lang#81654) is significant throughout the ecosystem, through `lexical-core`. cc rust-lang#76904 Fixes rust-lang#81654
I'm doing this to work around rust-lang/rust#81654, as suggested over there rust-lang/rust#81654 (comment).
* Trigger CI * Bump up lexical-core I'm doing this to work around rust-lang/rust#81654, as suggested over there rust-lang/rust#81654 (comment).
Fix the issue as described in rust-lang/rust#81654
Fix the issue as described in rust-lang/rust#81654
Update lexical-core This updates lexical-core because the old version no longer builds on nightly due to rust-lang/rust#81654.
In combination with @trevyn 's patch solution I guess the best fix for now is to use?
(I am using some dependencies that use old versions of nom (5.*) and this is why I needed it) |
@jhoobergs [dependencies.lexical-core]
optional = true
version = ">= 0.6, < 0.8" Trying myself with the following [dependencies]
nom = "5" It's possible that |
Thanks, that was indeed the case. I had tried |
* update lexical-core because 0.7.4 doesn't compile Fix the issue as described in rust-lang/rust#81654 * update lexical-core because 0.7.4 doesn't compile Fix the issue as described in rust-lang/rust#81654
I am using the latest nightly compiler build. When it got to compiling the
lexical-core 0.7.4
crate:I expected to see this happen: the compilation should be completed with no errors, as with the previous nightly builds
Instead, this happened: 27 errors from the crate spat on the screen.
Meta
rustc --version --verbose
:I am not sure if it had been a bug in the type-checker, as the compilation doesn't fail on previous nightly compilers , only ocurred in the newest nightly.
The related issue on lexical-core: Alexhuszagh/rust-lexical#55
The text was updated successfully, but these errors were encountered: