pumpkin
pumpkin copied to clipboard
Error in ramp library
When using pumpkin 2.01 in a project with rustc 1.39.0-nightly (521d78407 2019-08-25) and the following dependencies:
[dependencies] pumpkin = "2.0.1" modinverse = "0.1.1" num-integer = "0.1.41" ramp = "0.5.2"
It downloads ramp v0.3.13 and gets the following errors:
Compiling ramp v0.3.13
error[E0658]: use of unstable library feature 'raw_vec_internals': implementation detail
--> /home/john/.cargo/registry/src/github.com-1ecc6299db9ec823/ramp-0.3.13/src/int.rs:43:5
|
43 | use alloc::raw_vec::RawVec;
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(raw_vec_internals)]
to the crate attributes to enable
error[E0658]: use of unstable library feature 'raw_vec_internals': implementation detail
--> /home/john/.cargo/registry/src/github.com-1ecc6299db9ec823/ramp-0.3.13/src/int.rs:152:36
|
152 | fn with_raw_vec<F: FnOnce(&mut RawVec<Limb>)>(&mut self, f: F) {
| ^^^^^^^^^^^^
|
= help: add #![feature(raw_vec_internals)]
to the crate attributes to enable
error[E0658]: use of unstable library feature 'raw_vec_internals': implementation detail
--> /home/john/.cargo/registry/src/github.com-1ecc6299db9ec823/ramp-0.3.13/src/int.rs:155:27
|
155 | let mut vec = RawVec::from_raw_parts(self.ptr.as_mut(), old_cap);
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(raw_vec_internals)]
to the crate attributes to enable
error[E0658]: use of unstable library feature 'raw_vec_internals': implementation detail
--> /home/john/.cargo/registry/src/github.com-1ecc6299db9ec823/ramp-0.3.13/src/int.rs:939:22
|
939 | drop(RawVec::from_raw_parts(self.ptr.as_mut(),
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(raw_vec_internals)]
to the crate attributes to enable
error[E0658]: use of unstable library feature 'raw_vec_internals': implementation detail
--> /home/john/.cargo/registry/src/github.com-1ecc6299db9ec823/ramp-0.3.13/src/int.rs:163:40
|
163 | self.ptr = Unique::new(vec.ptr()).unwrap();
| ^^^
|
= help: add #![feature(raw_vec_internals)]
to the crate attributes to enable
error[E0599]: no method named cap
found for type alloc::raw_vec::RawVec<ll::limb::Limb>
in the current scope
--> /home/john/.cargo/registry/src/github.com-1ecc6299db9ec823/ramp-0.3.13/src/int.rs:164:31
|
164 | let new_cap = vec.cap();
| ^^^ private field, not a method
error[E0658]: use of unstable library feature 'raw_vec_internals': implementation detail
--> /home/john/.cargo/registry/src/github.com-1ecc6299db9ec823/ramp-0.3.13/src/int.rs:186:36
|
186 | ret.with_raw_vec(|v| v.reserve_exact(0, cap as usize))
| ^^^^^^^^^^^^^
|
= help: add #![feature(raw_vec_internals)]
to the crate attributes to enable
error[E0658]: use of unstable library feature 'raw_vec_internals': implementation detail
--> /home/john/.cargo/registry/src/github.com-1ecc6299db9ec823/ramp-0.3.13/src/int.rs:275:15
|
275 | v.shrink_to_fit(size);
| ^^^^^^^^^^^^^
|
= help: add #![feature(raw_vec_internals)]
to the crate attributes to enable
error[E0658]: use of unstable library feature 'raw_vec_internals': implementation detail
--> /home/john/.cargo/registry/src/github.com-1ecc6299db9ec823/ramp-0.3.13/src/int.rs:760:19
|
760 | v.reserve_exact(old_cap, cap as usize - old_cap)
| ^^^^^^^^^^^^^
|
= help: add #![feature(raw_vec_internals)]
to the crate attributes to enable
error: aborting due to 9 previous errors
This seems odd as ramp = "0.5" is the dependency in this repo. Maybe this is an issue with the cargo package manager>