Skip to content

regression: Display and Debug for ErrorKind #94507

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum

Crater picked up this issue in a number of crates:

[INFO] [stdout] error[E0034]: multiple applicable items in scope
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/lightning-0.0.104/src/ln/msgs.rs:962:32
[INFO] [stdout]     |
[INFO] [stdout] 962 |             DecodeError::Io(ref e) => e.fmt(f),
[INFO] [stdout]     |                                         ^^^ multiple `fmt` found
[INFO] [stdout]     |
[INFO] [stdout]     = note: candidate #1 is defined in an impl of the trait `std::fmt::Display` for the type `ErrorKind`
[INFO] [stdout]     = note: candidate #2 is defined in an impl of the trait `Debug` for the type `ErrorKind`
[INFO] [stdout] help: disambiguate the associated function for candidate #1
[INFO] [stdout]     |
[INFO] [stdout] 962 |             DecodeError::Io(ref e) => std::fmt::Display::fmt(&e, f),
[INFO] [stdout]     |                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] help: disambiguate the associated function for candidate #2
[INFO] [stdout]     |
[INFO] [stdout] 962 |             DecodeError::Io(ref e) => Debug::fmt(&e, f),
[INFO] [stdout]     |                                       ~~~~~~~~~~~~~~~~~
[INFO] [stdout] 

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions