AliasRelate: don't discard constraints on overflow#148069
AliasRelate: don't discard constraints on overflow#148069lcnr wants to merge 3 commits intorust-lang:mainfrom
Conversation
|
☔ The latest upstream changes (presumably #148066) made this pull request unmergeable. Please resolve the merge conflicts. |
| // won't be a breaking change, so this is good enough for now. | ||
| return Ok(self.make_ambiguous_response_no_constraints(cause, opaque_types_jank)); | ||
| match self.current_goal_kind { | ||
| CurrentGoalKind::AliasRelate | CurrentGoalKind::NormalizesTo => {} |
There was a problem hiding this comment.
right so here you'd have previously discarded (since AliasRelate got CurrentGoalKind::Misc but now you take this top branch). I'm not 100% sure why you also go here for NormalizesTo. That'd have previously discarded.
There was a problem hiding this comment.
That'd have previously discarded.
they wouldn't have, because for NormalizesTo we use the shallow_certainty due to the above match (self.current_goal_kind, shallow_certainty). That's subtle though
There was a problem hiding this comment.
Or somehow combine the two checks, such that all the ways in which we care about self.current_goal_kind are handled exhaustively. I'm not sure that ends up working though, could also turn out more confusing rather than less
There was a problem hiding this comment.
I tried: combining doesn't produce a nice check, maybe just document?
3620c77 to
eaf4dbd
Compare
|
☔ The latest upstream changes (presumably #148721) made this pull request unmergeable. Please resolve the merge conflicts. |
eaf4dbd to
a45a475
Compare
|
(rebased, I was doing some rebasing anyway) |
|
A job failed! Check out the build log: (web) (plain enhanced) (plain) Click to see the possible cause of the failure (guessed by this bot) |
|
spurious?
we changed to main ofc see: #148564 |
|
☔ The latest upstream changes (presumably #149397) made this pull request unmergeable. Please resolve the merge conflicts. |
kinda fixes rust-lang/trait-system-refactor-initiative#246
r? @BoxyUwU