You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9d3cc46
Browse filesBrowse the repository at this point in the historyBrowse files
Rollup merge of #161988 - Dnreikronos:trait_solver/reflexive_region_constraints, r=BoxyUwU
trait solver: Handle reflexive region constraints
Fixesrust-lang/project-assumptions-on-binders#19
A reflexive placeholder constraint like `'a: 'a` can show up after we compute transitive region constraints. We then try to pull it out of the current universe by looking for lower-universe candidates. With none to choose from it becomes false, even though `'a: 'a` was true the whole time.
I first had this buried in the binder region work, which made a green test pretty meaningless because too much else was changing around it. Split out on its own, the fix is just to accept equal regions before doing the universe rewrite. I think that is the sensible place to stop: it handles the direct case and the reflexive edges made by the transitive pass. I added a regression for the direct case.
cc/ @BoxyUwU o/
0 commit comments