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

bitvec 0.20.1 is broken right now #2434

Closed
mmyyrroonn opened this issue Feb 14, 2021 · 2 comments
Closed

bitvec 0.20.1 is broken right now #2434

mmyyrroonn opened this issue Feb 14, 2021 · 2 comments

Comments

@mmyyrroonn
Copy link

  • It would help if you submit info about the system you are running, e.g.: operating system, kernel version, amount of available memory and swap, etc.

rustup nightly

  • Logs could be very helpful. If possible, submit the whole log. Please format it as code blocks.

It seems like this crate added one type called BITS in this commit which cause conflict for the bitvec. I tried to build the latest parachain collator but failed.


error[E0034]: multiple applicable items in scope
   --> /Users/qiufan/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.20.1/src/order.rs:476:7
    |
476 |             R::BITS,
    |                ^^^^ multiple `BITS` found
    |
note: candidate #1 is defined in the trait `BitMemory`
   --> /Users/qiufan/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.20.1/src/mem.rs:44:2
    |
44  |     const BITS: u8 = mem::size_of::<Self>() as u8 * 8;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: candidate #2 is defined in the trait `IsNumber`
   --> /Users/qiufan/.cargo/registry/src/github.com-1ecc6299db9ec823/funty-1.2.0/src/lib.rs:144:2
    |
144 |     const BITS: u32;
    |     ^^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #1
    |
476 |             BitMemory::BITS,
    |             ^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #2
    |
476 |             IsNumber::BITS,
    |             ^^^^^^^^^^^^^^
@mmyyrroonn
Copy link
Author

There is one issue in bitvec ferrilab/bitvec#105 and a workaround

@bkchr bkchr closed this as completed Feb 14, 2021
@bkchr
Copy link
Member

bkchr commented Feb 14, 2021

This is an upstream issue, no polakdot issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants