We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de50a86 commit f29000eCopy full SHA for f29000e
compiler/rustc_trait_selection/src/solve/project_goals.rs
@@ -587,12 +587,8 @@ impl<'tcx> assembly::GoalKind<'tcx> for ProjectionPredicate<'tcx> {
587
goal: Goal<'tcx, Self>,
588
) -> QueryResult<'tcx> {
589
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)
+ ecx.infcx
+ .probe(|_| ecx.eq_term_and_make_canonical_response(goal, Certainty::Yes, discriminant))
596
}
597
598
0 commit comments