Skip to content

Build fails when using Msb0 #306

@ThibaultLemaire

Description

@ThibaultLemaire

Hi and thanks for this neat crate!

I'd like to report that 1.0.1 does not build on my side with the following error:

Compiling bitvec v1.0.1
error[E0255]: the name `Msb0` is defined multiple times
   --> /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bitvec-1.0.1/src/order.rs:226:9
    |
122 | pub struct Msb0;
    | ---------------- previous definition of the type `Msb0` here
...
226 | pub use self::Lsb0 as Msb0;
    |         ^^^^^^^^^^^^^^^^^^ `Msb0` reimported here
    |
    = note: `Msb0` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
    |
226 | pub use self::Lsb0 as OtherMsb0;
    |                       +++++

error[E0432]: unresolved import `crate::order::LocalBits`
  --> /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bitvec-1.0.1/src/lib.rs:51:4
   |
51 |             LocalBits,
   |             ^^^^^^^^^ no `LocalBits` in `order`

Some errors have detailed explanations: E0255, E0432.
For more information about an error, try `rustc --explain E0255`.

Downgrading to 1.0.0 lets me build again.

Architectures tested:

  • x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu (native)
  • x86_64-unknown-linux-gnu -> wasm32-unknown-unknown

I am available for further investigation. Let me know if you need more info/a minimum repro project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions