-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Register outlives predicates from queries the right way around. #51096
Register outlives predicates from queries the right way around. #51096
Conversation
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
Constraint::VarSubVar(v1, v2) => ty::OutlivesPredicate( | ||
tcx.mk_region(ty::ReVar(v1)).into(), | ||
tcx.mk_region(ty::ReVar(v2)), | ||
tcx.mk_region(ty::ReVar(v2)).into(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woah, this is .. indeed wrong. Sigh.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
@bors r+ |
📌 Commit 9582507 has been approved by |
🔒 Merge conflict |
@bors delegate=matthewjasper @matthewjasper, when you get a chance to rebase, feel free to tell bors "r=nikomatsakis" |
✌️ @matthewjasper can now approve this pull request |
9582507
to
b83daea
Compare
rebased |
@bors r+ |
📌 Commit b83daea has been approved by |
@bors r=nikomatsakis |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit b83daea has been approved by |
…nikomatsakis Register outlives predicates from queries the right way around. Closes #49354 The region constraints from queries need to be reversed from sub to outlives. Note: wf checking reports these errors before NLL, so I'm not sure if there's any case when these predicates need to be created at all. cc @nikomatsakis
☀️ Test successful - status-appveyor, status-travis |
Closes #49354
The region constraints from queries need to be reversed from sub to outlives.
Note: wf checking reports these errors before NLL, so I'm not sure if there's any case when these predicates need to be created at all.
cc @nikomatsakis