Skip to content

Rust compiler do not provide useful information when there are unsatisfied constraints inside CGP component wiring #44

Open
@soareschen

Description

@soareschen

Currently, when there is any unsatisfied constraint inside a context-generic provider implementation, it is not shown in the error message when trying to implement a consumer trait. Due to the indirection through blanket implementations, Rust only prints an unhelpful message that the blanket implementation is not implemented without explaining why. More details about this issue is explained in the debugging chapter of CGP book.

There is not much we can do within this project to fix the issue. Instead, this has been reported to the Rust project at rust-lang/rust#134346, with a fix PR available at rust-lang/rust#134348. This serves as a tracking issue for tracking the progress of fixing this at the Rust compiler.

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