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

Use the new trait solver. #1234

Merged
merged 2 commits into from
Nov 14, 2024
Merged

Use the new trait solver. #1234

merged 2 commits into from
Nov 14, 2024

Conversation

jhjourdan
Copy link
Collaborator

We will nee too do that anyway, and this may help for #1232.

The main issue I encountered is that the new trait solver does not allow ambiguity between a user impl and an impl coming from ParamEnv when searching for an instance. This is fixed by removing all such ambiguities in our code base. At some point, we will need to figure out a way to report a pleasant error message when finding trait method instances fails because of such an ambiguity.

@jhjourdan
Copy link
Collaborator Author

Oh, and by the way: this PR magically fixes our problem with PartialEq::eq.

@xldenis
Copy link
Collaborator

xldenis commented Nov 14, 2024

Oh, and by the way: this PR magically fixes our problem with PartialEq::eq.

Magical fixes are the best kinds of fixes

… avoid some normalization in term.rs and vcgen.rs.
@jhjourdan jhjourdan enabled auto-merge November 14, 2024 09:02
@jhjourdan jhjourdan merged commit 85b53b5 into master Nov 14, 2024
4 checks passed
@jhjourdan jhjourdan deleted the new_trait_solver branch November 14, 2024 09:07
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

Successfully merging this pull request may close these issues.

2 participants