Replace EarlyBinder(x) with EarlyBinder::new(x)

This commit is contained in:
Kyle Matsuda
2023-05-26 11:19:35 -06:00
parent 39c03fb652
commit 03534ac8b7
46 changed files with 63 additions and 59 deletions

View File

@@ -487,7 +487,7 @@ fn is_impossible_method(tcx: TyCtxt<'_>, (impl_def_id, trait_item_def_id): (DefI
tcx,
ObligationCause::dummy_with_span(*span),
param_env,
ty::EarlyBinder(*pred).subst(tcx, impl_trait_ref.substs),
ty::EarlyBinder::new(*pred).subst(tcx, impl_trait_ref.substs),
)
})
});