Skip to content

structurally resolve how does it work #15

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

Open
lcnr opened this issue May 19, 2023 · 0 comments
Open

structurally resolve how does it work #15

lcnr opened this issue May 19, 2023 · 0 comments
Labels
not-blocking-coherence An issue we can resolve after stabilizing the new solver during coherence

Comments

@lcnr
Copy link
Contributor

lcnr commented May 19, 2023

TODO: summarize and refer to the relevant code from rust-lang/rust#110204

Projection goal old Projection goal new structurally resolve new structurally resolve new
success incl nested obl normalizes to normalizes to normalizes normalizes
success shallow, ambig nested normalizes to normalizes to normalizes normalizes
success shallow, err nested normalizes to -> fulfill err1 stays as projection stays as projection stays as projection
ambig shallow ambig normalizes to (ambig) error because infer var error because infer var
err shallow unnormalized unnormalized stays as projection stays as projection

Footnotes

  1. if this happens we fail anyways as the projection would not be well-formed.

@lcnr lcnr added the not-blocking-coherence An issue we can resolve after stabilizing the new solver during coherence label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-blocking-coherence An issue we can resolve after stabilizing the new solver during coherence
Projects
None yet
Development

No branches or pull requests

1 participant