Skip to content

Restore region uniquification in the new solver 🎉 #114117

Merged
bors merged 2 commits intorust-lang:masterfrom
compiler-errors:return-to-uniq
Jul 27, 2023
Merged

Restore region uniquification in the new solver 🎉 #114117
bors merged 2 commits intorust-lang:masterfrom
compiler-errors:return-to-uniq

Conversation

@compiler-errors
Copy link
Contributor

@compiler-errors compiler-errors commented Jul 27, 2023

All of the bugs that were "due" to uniquification have been settled via other means (e.g. bidirectional alias-relate, param-env incompleteness, etc).

Firstly, revert the functional changes in #110180. 😸

Secondly, we need to ignore regions when considering if a goal has changed (the "has_changed" boolean returned from evaluate_goal) -- otherwise, because we're doing region uniquification, we may perpetually consider a goal to be changed. See the UI test I committed for an explanation.

cc rust-lang/trait-system-refactor-initiative#30

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants