Skip to content

feat: Diagnose trait errors 🎉#22186

Open
ChayimFriedman2 wants to merge 3 commits intorust-lang:masterfrom
ChayimFriedman2:trait-errors
Open

feat: Diagnose trait errors 🎉#22186
ChayimFriedman2 wants to merge 3 commits intorust-lang:masterfrom
ChayimFriedman2:trait-errors

Conversation

@ChayimFriedman2
Copy link
Copy Markdown
Contributor

I.e. type does not implement trait.

There are a lot of other solver errors to be emitted, and the error is pretty simple currently, but this is a huge step!

Watch this wonderful video:

trait.errors.mp4

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 26, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 27, 2026

☔ The latest upstream changes (possibly #21987) made this pull request unmergeable. Please resolve the merge conflicts.

In rustc it is not, but we're unlikely to add something non-`Copy` to it in the near future, and it simplifies the code.

This was basically adding a derive then `cargo clippy --fix` and `cargo fmt`.
I.e. type does not implement trait.

There are a lot of other solver errors to be emitted, and the error is pretty simple currently, but this is a huge step!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants