rebase
This commit is contained in:
parent
30ed152330
commit
be6a344365
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ impl<'tcx> FulfillmentCtxt<'tcx> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'tcx> TraitEngine<'tcx> for FulfillmentCtxt<'tcx> {
|
impl<'tcx> TraitEngine<'tcx> for FulfillmentCtxt<'tcx> {
|
||||||
#[instrument(level = "debug", skip(self, _infcx))]
|
#[instrument(level = "debug", skip(self, infcx))]
|
||||||
fn register_predicate_obligation(
|
fn register_predicate_obligation(
|
||||||
&mut self,
|
&mut self,
|
||||||
infcx: &InferCtxt<'tcx>,
|
infcx: &InferCtxt<'tcx>,
|
||||||
|
|
|
@ -20,7 +20,7 @@ pub(crate) fn deeply_normalize<'tcx, T: TypeFoldable<TyCtxt<'tcx>>>(
|
||||||
at: At<'_, 'tcx>,
|
at: At<'_, 'tcx>,
|
||||||
value: T,
|
value: T,
|
||||||
) -> Result<T, Vec<FulfillmentError<'tcx>>> {
|
) -> Result<T, Vec<FulfillmentError<'tcx>>> {
|
||||||
let fulfill_cx = FulfillmentCtxt::new();
|
let fulfill_cx = FulfillmentCtxt::new(at.infcx);
|
||||||
let mut folder = NormalizationFolder { at, fulfill_cx, depth: 0, universes: Vec::new() };
|
let mut folder = NormalizationFolder { at, fulfill_cx, depth: 0, universes: Vec::new() };
|
||||||
|
|
||||||
value.try_fold_with(&mut folder)
|
value.try_fold_with(&mut folder)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue