Aatch / ramp

RAMP - Rust Arithmetic in Multiple Precision
Apache License 2.0
261 stars 38 forks source link

Cannot compile 0.5.6 #122

Closed jakasi2 closed 4 years ago

jakasi2 commented 4 years ago

hi, I am using rustc 1.45.0-nightly (7ced01a73 2020-04-30) and when I try to build a simple program I am stuck at ramp compilation stage. I try to build with cargo build --release. I get the following error.

error[E0599]: no function or associated item named `empty` found for struct `std::ptr::Unique<_>` in the current scope
    --> C:\Users\user\.cargo\registry\src\github.com-1ecc6299db9ec823\ramp-0.5.6\src\int.rs:3624:26
     |
3624 |             ptr: Unique::empty(),
     |                          ^^^^^ function or associated item not found in `std::ptr::Unique<_>`

What am I doing wrong? Thanks

clarfonthey commented 4 years ago

It was renamed to empty

jakasi2 commented 4 years ago

Well probably, but this is the crate from crates.io. How can this be fixed so it would also work for others? The issue occurs when the crate is downloaded and is compiling, before the user's code is being compiled.. as a part of cargo build. The version is 0.5.6.

From Cargo.toml

[dependencies]
ramp = "0.5.6"

error

PS Just saw it was updated. Just have to wait it's updated on crates.io I guess. :)

jakasi2 commented 4 years ago

Issue was updated in 0.5.7 . It was because of Rust std::ptr interface change.

rozbb commented 4 years ago

Thanks for the report! Published on crates.io!