1
Fork 0

Use SolverRelating in favor of TypeRelating in the old solver where possible

This commit is contained in:
Michael Goulet 2024-10-04 13:30:51 -04:00
parent 30a2ecddb4
commit a4cd2202ef
4 changed files with 92 additions and 39 deletions

View file

@ -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>(