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

prefer universal region from lower universe in region unification table #108899

Closed
wants to merge 7 commits into from

Conversation

aliemjay
Copy link
Member

@aliemjay aliemjay commented Mar 8, 2023

followup for #108121

r? @lcnr (feel free to reassign)

aliemjay added 7 commits March 5, 2023 12:00
Bless tests and show an introduced unsoundness related to
exits<'a> { forall<'b> { 'a == 'b } }.
We now resolve the var ?a in U0 to the placeholder !b in U1.
In case a variable is unified with two universal regions from different
universes, use the one with the lower universe as it has a higher chance
of being compatible with the variable.
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Mar 8, 2023
@lcnr
Copy link
Contributor

lcnr commented Mar 8, 2023

r=me once #108121 lands (or feel free to put it back into 108121. I saw your comment and the commit)

@aliemjay
Copy link
Member Author

aliemjay commented Mar 8, 2023

Ok I'll put it back in #108121 because it seems bors is not happy with my changes and needs a new review anway. Sorry for the inconvenience!

@aliemjay aliemjay closed this Mar 8, 2023
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. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants