Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

sp-arithmetic error while doing "cargo build" #7282

Closed
tractorss opened this issue Oct 8, 2020 · 2 comments
Closed

sp-arithmetic error while doing "cargo build" #7282

tractorss opened this issue Oct 8, 2020 · 2 comments
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.

Comments

@tractorss
Copy link

error[E0282]: type annotations needed
--> /home/harman/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-arithmetic-2.0.0/src/fixed_point.rs:541:9
|
541 | let accuracy = P::ACCURACY.saturated_into();
| ^^^^^^^^ consider giving accuracy a type
...
1595 | / implement_fixed!(
1596 | | FixedI64,
1597 | | test_fixed_i64,
1598 | | i64,
... |
1601 | | "Fixed Point 64 bits signed, range = [-9223372036.854775808, 9223372036.854775807]",
1602 | | );
| |__- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

@github-actions github-actions bot added the J2-unconfirmed Issue might be valid, but it’s not yet known. label Oct 8, 2020
@bkchr
Copy link
Member

bkchr commented Oct 8, 2020

That is a rustc bug. Please downgrade your nightly.

rust-lang/rust#77653

@bkchr bkchr closed this as completed Oct 8, 2020
@hayesgm
Copy link

hayesgm commented Nov 25, 2020

This isn't hasn't been fixed since this was closed over a month ago, and if I'm reading correctly, it doesn't look like Rust has any open issues to address. Should we just fix the issue here instead of permanently staying on an old version of rust? I believe the fix should be just... adding three type annotations?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.
Projects
None yet
Development

No branches or pull requests

3 participants