Skip to content

Coherence error messages can be inscrutable #23980

Open
@nikomatsakis

Description

@nikomatsakis

In particular, when the overlap check fails, it doesn't give much clarity, particularly when the overlap is between impls in different crates. It should tell you:

  1. Precisely what type overlaps
  2. For each case of negative reasoning it was not able to make, why it was not able to make it.
    bind's glue function should tail-call its target  #2 might be a bit tricky to do, not sure, but we can certainly improve on current state of affairs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.E-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions