Use SolverRelating in favor of TypeRelating in the old solver where possible
This commit is contained in:
parent
30a2ecddb4
commit
a4cd2202ef
4 changed files with 92 additions and 39 deletions
|
@ -836,7 +836,7 @@ where
|
|||
lhs: T,
|
||||
rhs: T,
|
||||
) -> Result<Vec<Goal<I, I::Predicate>>, NoSolution> {
|
||||
self.delegate.relate(param_env, lhs, ty::Variance::Invariant, rhs)
|
||||
Ok(self.delegate.relate(param_env, lhs, ty::Variance::Invariant, rhs)?)
|
||||
}
|
||||
|
||||
pub(super) fn instantiate_binder_with_infer<T: TypeFoldable<I> + Copy>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue