getreu / tp-note

Minimalistic note taking: save and edit your clipboard content as a note file (Gitlab mirror)
https://blog.getreu.net/projects/tp-note/
Apache License 2.0
115 stars 3 forks source link

tp-note failes to compile with: error[E0034]: multiple applicable items in scope #2

Closed getreu closed 3 years ago

getreu commented 3 years ago

Compilation error:

error[E0034]: multiple applicable items in scope
   --> /home/getreu/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.19.4/src/order.rs:315:15
    |
315 |         if ct == R::BITS {
    |                     ^^^^ multiple `BITS` found
    |
note: candidate #1 is defined in the trait `BitMemory`
   --> /home/getreu/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.19.4/src/mem.rs:29:2
    |
29  |     const BITS: u8 = mem::size_of::<Self>() as u8 * 8;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: candidate #2 is defined in the trait `IsNumber`
   --> /home/getreu/.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
    |
315 |         if ct == BitMemory::BITS {
    |                  ^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #2
    |
315 |         if ct == IsNumber::BITS {
    |                  ^^^^^^^^^^^^^^

   Compiling rand_core v0.6.2
   Compiling directories v2.0.2
error: aborting due to 43 previous errors

This is a downstream issue, described here: 0.19 bitvec break by 1.2 funty, causes nom 6.1 to fail to compile · Issue #3 · myrrlyn/funty

The workaround "Downgrade funty to 1.1.0" works for me. The following prevents cargo install from upgrading downstream dependencies:

cargo install --locked tp-note

I keep this issue open until funty is fixed. Nothing can be done in tp-note.