Uplift fast rejection to new solver

This commit is contained in:
Michael Goulet 2024-06-29 22:35:17 -04:00
parent d1b7355d3d
commit 53db64168f
13 changed files with 419 additions and 402 deletions

View file

@ -571,7 +571,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
return;
}
let drcx = DeepRejectCtxt { treat_obligation_params: TreatParams::ForLookup };
let drcx = DeepRejectCtxt::new(self.tcx(), TreatParams::ForLookup);
let obligation_args = obligation.predicate.skip_binder().trait_ref.args;
self.tcx().for_each_relevant_impl(
obligation.predicate.def_id(),