Use new helper inside probe
This commit is contained in:
parent
de50a86a12
commit
f29000eba9
1 changed files with 2 additions and 6 deletions
|
@ -587,12 +587,8 @@ impl<'tcx> assembly::GoalKind<'tcx> for ProjectionPredicate<'tcx> {
|
||||||
goal: Goal<'tcx, Self>,
|
goal: Goal<'tcx, Self>,
|
||||||
) -> QueryResult<'tcx> {
|
) -> QueryResult<'tcx> {
|
||||||
let discriminant = goal.predicate.self_ty().discriminant_ty(ecx.tcx());
|
let discriminant = goal.predicate.self_ty().discriminant_ty(ecx.tcx());
|
||||||
let nested_goals = ecx.infcx.eq(
|
ecx.infcx
|
||||||
goal.param_env,
|
.probe(|_| ecx.eq_term_and_make_canonical_response(goal, Certainty::Yes, discriminant))
|
||||||
goal.predicate.term.ty().expect("expected ty goal"),
|
|
||||||
discriminant,
|
|
||||||
)?;
|
|
||||||
ecx.evaluate_all_and_make_canonical_response(nested_goals)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue