We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Trait solving has to be complete during coherence to be sound.
We however have a lot of stable code which depends on incompleteness. The new solver is intentionally incomplete when run outside of coherence.
try_merge_candidates
For trait and project goals, we fall back to only considering ParamEnv and AliasBound candidates if trying to merge all candidates failed.
ParamEnv
AliasBound
This is similar to the behavior of the old solver. TODO: Do we incorrectly guide GAT substs inference rn, I think we may be missing a check there?
TODO
AliasRelate
We prefer to relate the generic arguments of aliases over normalization in case of ambiguity.
The text was updated successfully, but these errors were encountered:
Relating generic arguments of aliases together with lazy norm results in the following test to pass:
https://github.com/rust-lang/rust/blob/be72f2587c91579406117f99fa332383d66b7dcd/tests/ui/traits/new-solver/alias_eq_substs_eq_not_intercrate.rs#L10-L22
Sorry, something went wrong.
split into
No branches or pull requests
Trait solving has to be complete during coherence to be sound.
We however have a lot of stable code which depends on incompleteness. The new solver is intentionally incomplete when run outside of coherence.
try_merge_candidates
For trait and project goals, we fall back to only considering
ParamEnv
andAliasBound
candidates if trying to merge all candidates failed.This is similar to the behavior of the old solver. TODO: Do we incorrectly guide GAT substs inference rn, I think we may be missing a check there?
Why do we have to be incomplete here
TODO
AliasRelate
We prefer to relate the generic arguments of aliases over normalization in case of ambiguity.
Why do we have to be incomplete here
TODO
The text was updated successfully, but these errors were encountered: