-
Notifications
You must be signed in to change notification settings - Fork 792
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
Compiler error when combined with cfg-if in particular ways. #1156
Comments
closing as it's been fixed by moving to minimal-lexical |
Note that this was specifically about backporting the change to nom5. Was the move to |
@jonhoo nom 5.1.2 allows lexical-core 0.7: https://crates.io/crates/nom/5.1.2/dependencies since commit e73a4d4 is there still an issue with it? |
Ah, sorry, you're entirely right — I missed that change! Sorry for the noise :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
rustc 1.43.1 (8d69840ab 2020-05-04)
5.1.1
Test case
This is a manifestation of Alexhuszagh/rust-lexical#38, and I gave a bit of context in #1115 (comment). The issue specifically is that
nom 5
depends onlexical-core 0.6
, which now pinscfg-if 0.1.9
. Andcfg-if
fails to compile all sorts valid Rust code on newer Rust versions (this is fixed incfg-if 0.1.10
). See thelexical-core
issue linked above for more details.Normally, this would be none of nom's business (since nom is doing nothing wrong here). However, since the bump from
lexical-core 0.6
tolexical-core 0.7
presented no API changes, as @shepmaster pointed out in #1115, it should be possible to issue a new minor release ofnom 5
that allowslexical-core 0.7
(basically by backporting @shepmaster's PR).The error cases are pretty bad:
Example test case 1:
Note that this applies if
nom 5
andtime 0.2
every appear together in any dependency graph.Example test case 2:
All sorts of different things fail, but here's an example:
The text was updated successfully, but these errors were encountered: