Skip to content

Commit f29000e

Browse files
committed
Use new helper inside probe
1 parent de50a86 commit f29000e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

compiler/rustc_trait_selection/src/solve/project_goals.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -587,12 +587,8 @@ impl<'tcx> assembly::GoalKind<'tcx> for ProjectionPredicate<'tcx> {
587587
goal: Goal<'tcx, Self>,
588588
) -> QueryResult<'tcx> {
589589
let discriminant = goal.predicate.self_ty().discriminant_ty(ecx.tcx());
590-
let nested_goals = ecx.infcx.eq(
591-
goal.param_env,
592-
goal.predicate.term.ty().expect("expected ty goal"),
593-
discriminant,
594-
)?;
595-
ecx.evaluate_all_and_make_canonical_response(nested_goals)
590+
ecx.infcx
591+
.probe(|_| ecx.eq_term_and_make_canonical_response(goal, Certainty::Yes, discriminant))
596592
}
597593
}
598594

0 commit comments

Comments
 (0)