change snapshot tracking in fulfillment contexts
This commit is contained in:
parent
46973c9c8a
commit
d04775d739
23 changed files with 79 additions and 121 deletions
|
@ -606,7 +606,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
|||
&mut self,
|
||||
predicates: impl IntoIterator<Item = PredicateObligation<'tcx>>,
|
||||
) -> Result<EvaluationResult, OverflowError> {
|
||||
let mut fulfill_cx = crate::solve::FulfillmentCtxt::new();
|
||||
let mut fulfill_cx = crate::solve::FulfillmentCtxt::new(self.infcx);
|
||||
fulfill_cx.register_predicate_obligations(self.infcx, predicates);
|
||||
// True errors
|
||||
// FIXME(-Ztrait-solver=next): Overflows are reported as ambig here, is that OK?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue