Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
soareschen opened this issue Dec 15, 2024 · 0 comments

Comments

@soareschen
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant