shrink ty::PredicateKind again

This commit is contained in:
lcnr 2021-08-02 08:47:15 +02:00
parent 283e0e670b
commit bc0156bace
12 changed files with 68 additions and 22 deletions

View file

@ -623,7 +623,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
if let (ty::ConstKind::Unevaluated(a), ty::ConstKind::Unevaluated(b)) =
(c1.val, c2.val)
{
if self.infcx.try_unify_abstract_consts(a, b) {
if self.infcx.try_unify_abstract_consts(a.shrink(), b.shrink()) {
return Ok(EvaluatedToOk);
}
}