1
Fork 0

Use fulfillment in InferCtxt::evaluate_obligation

This commit is contained in:
Michael Goulet 2023-03-23 19:22:32 +00:00
parent 2bab422393
commit 1680334928
2 changed files with 15 additions and 30 deletions

View file

@ -618,6 +618,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
let mut fulfill_cx = crate::solve::FulfillmentCtxt::new();
fulfill_cx.register_predicate_obligations(self.infcx, predicates);
// True errors
// FIXME(-Ztrait-solver=next): Overflows are reported as ambig here, is that OK?
if !fulfill_cx.select_where_possible(self.infcx).is_empty() {
return Ok(EvaluatedToErr);
}