Repository navigation
Remove the 'eq', 'eq_trace', and 'goals_to_obligations' methods from 'At' - #165345
fallible-algebra wants to merge 1 commit into
Conversation
|
r? @fee1-dead rustbot has assigned @fee1-dead. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
r? lcnr |
| if self.next_trait_solver { | ||
| return NextSolverRelate::relate( | ||
| self, | ||
| param_env, | ||
| expected, | ||
| ty::Invariant, | ||
| actual, | ||
| cause.span, | ||
| ) | ||
| .map(|goals| self.goals_to_obligations(cause, goals)); | ||
| } else { | ||
| let mut op = | ||
| TypeRelating::new(self, trace, param_env, define_opaque_types, ty::Invariant); | ||
| op.relate(expected, actual)?; | ||
| return Ok(InferOk { value: (), obligations: op.into_obligations() }); | ||
| } |
There was a problem hiding this comment.
The rest of the PR overall looks fine to me, but need someone to sign off on this if next_trait_solver introduction.
35e49c2 to
b27c369
Compare
This comment has been minimized.
This comment has been minimized.
…aw' and 'eq_trace'
b27c369 to
0459009
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
| fcx.register_infer_ok_obligations(infer_ok); | ||
| expression_ty | ||
| }) | ||
| fcx.eq_raw( |
There was a problem hiding this comment.
can you add a FIXME that this should instead be a function on the fcx.
| // Doesn't actually matter if we define opaque types here, this is just used for | ||
| // diagnostics, and the result is never kept around. |
There was a problem hiding this comment.
that's a comment on the DefineOpaqueTypes::Yes arg
| // needed to define opaque types for tests/ui/type-alias-impl-trait/assoc-projection-ice.rs | ||
| self.infcx | ||
| .at(&obligation.cause, obligation.param_env) | ||
| .eq(DefineOpaqueTypes::Yes, obligation_trait_ref, found_trait_ref) | ||
| .eq_raw( | ||
| &obligation.cause, | ||
| obligation.param_env, | ||
| DefineOpaqueTypes::Yes, |
There was a problem hiding this comment.
so it this one (existing issue)
|
actually don't care too much about the location of the |
…-eq-and-eq-trace2, r=fee1-dead,lcnr Remove the 'eq', 'eq_trace', and 'goals_to_obligations' methods from 'At' Continuation of rust-lang#164244, rust-lang#164244 etc.
Continuation of #164244, #164244 etc.