1
Fork 0

review + some small stuff

This commit is contained in:
lcnr 2023-03-30 11:49:06 +02:00
parent 2186847f28
commit 3fab7f7c13
7 changed files with 52 additions and 14 deletions

View file

@ -341,7 +341,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
return Err(NoSolution);
}
let certainty = responses.iter().fold(Certainty::AMBIGUOUS, |certainty, response| {
certainty.unify_and(response.value.certainty)
certainty.unify_with(response.value.certainty)
});
let response = self.evaluate_added_goals_and_make_canonical_response(certainty);