Skip to content

Build failure traced back to old commit #105

Closed
@terror

Description

@terror

When building bitvec from source, I'm getting a build error and after running git bisect I could trace it back down to this commit -> 47d6e19

Here is the message I'm receiving

error[E0034]: multiple applicable items in scope
  --> src/mem.rs:28:19
   |
28 |     const INDX: u8 = Self::BITS.trailing_zeros() as u8;
   |                      ^^^^^^^^^^ multiple `BITS` found

OS: macOS Big Sur 10.16 20C69 x86_64
cargo --version: cargo 1.36.0 (c4fcfb725 2019-05-15)

Note that I'm using Big Sur which may play a role in the cause of this error.

Activity

EthanYidong

EthanYidong commented on Feb 13, 2021

@EthanYidong

Actually, this is due to a breaking change in funty ferrilab/funty@b87325b, which ads a BITS constant that bitvec is glob importing. Version 1.1.0 of funty works fine, so as a temporary workaround, add funty = "=1.1.0" to your Cargo.toml

added a commit that references this issue on Feb 13, 2021
Zorotic

Zorotic commented on Feb 14, 2021

@Zorotic

Actually, this is due to a breaking change in funty myrrlyn/funty@b87325b, which ads a BITS constant that bitvec is glob importing. Version 1.1.0 of funty works fine, so as a temporary workaround, add funty = "=1.1.0" to your Cargo.toml

You are a live saver 💯

mzhang28

mzhang28 commented on Feb 14, 2021

@mzhang28

Maybe it would be a good idea to pin to minor versions of dependencies as well, since glob-imports are used in code?

66 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tarcieri@matthiasbeyer@sunjay@mzhang28@myrrlyn

        Issue actions

          Build failure traced back to old commit · Issue #105 · ferrilab/bitvec