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

Current master (as well as the latest version from crates.io) fails during the build #656

Closed
daniel-abramov opened this issue Jun 9, 2017 · 3 comments

Comments

@daniel-abramov
Copy link

It seems to be some problem with dependencies.

The error message is:

error[E0412]: cannot find type `BigInt` in this scope
   --> /home/daniel/.cargo/registry/src/github.com-1ecc6299db9ec823/num-rational-0.1.37/src/lib.rs:671:30
    |
671 | impl FromPrimitive for Ratio<BigInt> {
    |                              ^^^^^^ not found in this scope

error: no associated item named `from_float` found for type `Ratio<_>` in the current scope
   --> /home/daniel/.cargo/registry/src/github.com-1ecc6299db9ec823/num-rational-0.1.37/src/lib.rs:681:9
    |
681 |         Ratio::from_float(n)
    |         ^^^^^^^^^^^^^^^^^

error: no associated item named `from_float` found for type `Ratio<_>` in the current scope
   --> /home/daniel/.cargo/registry/src/github.com-1ecc6299db9ec823/num-rational-0.1.37/src/lib.rs:685:9
    |
685 |         Ratio::from_float(n)
    |         ^^^^^^^^^^^^^^^^^

P.S.: The patch version for num has been updated today, the crate itself is compilable, so I think something is wrong with the dependencies / compatibility between num* crates used from image.

@daniel-abramov
Copy link
Author

Ok, I think I found the issue. The problem seems to be in this file in Cargo.toml:

num-rational = { version = "0.1.32", default-features = false }

When I remove default-features = false, everything compiles well again. Is there really a need to keep default features disabled?

@jonas-schievink
Copy link

Looks to be rust-num/num#297, update your lockfile

@daniel-abramov
Copy link
Author

It is indeed that issue.

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

No branches or pull requests

2 participants