Skip to content

Build errors through failure #134

Closed
Closed
@mpapierski

Description

@mpapierski

Apologizes if this is incorrect repo to report such things. Probably I should report in both affected repos.

I'm using failure = 0.1.3 and after cargo update backtrace got resolved to 0.3.10 which is released today. And all of sudden I can't build failure because:

   Compiling failure v0.1.3                                                                                                                                                                                        
error[E0034]: multiple applicable items in scope                                                                                                                                                                   
   --> /home/michal/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.3/src/backtrace/mod.rs:132:20                                                                                                      
    |                                                                                                                                                                                                              
132 |                 bt.fmt(f)                                                                                                                                                                                    
    |                    ^^^ multiple `fmt` found                                                                                                                                                                  
    |                                                                                                                                                                                                              
    = note: candidate #1 is defined in an impl of the trait `std::fmt::Debug` for the type `backtrace::backtrace::Backtrace`                                                                                       
    = note: candidate #2 is defined in an impl of the trait `std::fmt::Display` for the type `backtrace::backtrace::Backtrace`                                                                                     
                                                                                                                                         

Looks like backtrace introduced some backwards incompatible change, or failure needs to be updated to accomodate for changes in backtrace.

For now cargo update -p backtrace --precise 0.3.9 solves the build issue, but as I'm developing a lib crate my travis builds will fail.

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

    Issue actions