contain-rs / bit-set

A Set of Bits
Apache License 2.0
63 stars 25 forks source link

Broken compilation for no_std #17

Closed jD91mZM2 closed 2 months ago

jD91mZM2 commented 5 years ago
error[E0432]: unresolved import `alloc::prelude::Vec`
   --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/bit-vec-0.5.1/src/lib.rs:103:5
    |
103 | use alloc::prelude::Vec;
    |     ^^^^^^^^^^^^^^^^^^^ no `Vec` in `prelude`

   Compiling rand_core v0.3.1
error[E0392]: parameter `B` is never used
    --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/bit-vec-0.5.1/src/lib.rs:1262:21
     |
1262 | pub struct IntoIter<B=u32> {
     |                     ^ unused type parameter
     |
     = help: consider removing `B` or using a marker such as `core::marker::PhantomData`

error[E0392]: parameter `B` is never used
    --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/bit-vec-0.5.1/src/lib.rs:1221:21
     |
1221 | pub struct Iter<'a, B: 'a = u32> {
     |                     ^ unused type parameter
     |
     = help: consider removing `B` or using a marker such as `core::marker::PhantomData`

error: aborting due to 3 previous errors

Some errors occurred: E0392, E0432.
For more information about an error, try `rustc --explain E0392`.
pczarn commented 2 months ago

Fixed in bit-vec