Replace EarlyBinder(x) with EarlyBinder::new(x)
This commit is contained in:
parent
39c03fb652
commit
03534ac8b7
46 changed files with 63 additions and 59 deletions
|
@ -83,7 +83,7 @@ impl<'tcx> FunctionItemRefChecker<'_, 'tcx> {
|
|||
// If the inner type matches the type bound by `Pointer`
|
||||
if inner_ty == bound_ty {
|
||||
// Do a substitution using the parameters from the callsite
|
||||
let subst_ty = EarlyBinder(inner_ty).subst(self.tcx, substs_ref);
|
||||
let subst_ty = EarlyBinder::new(inner_ty).subst(self.tcx, substs_ref);
|
||||
if let Some((fn_id, fn_substs)) =
|
||||
FunctionItemRefChecker::is_fn_ref(subst_ty)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue