@@ -1385,8 +1385,8 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
13851385 }
13861386
13871387 ( ty:: FnDef ( did1, substs1) , ty:: FnDef ( did2, substs2) ) => {
1388- let sig1 = EarlyBinder ( self . tcx . fn_sig ( * did1) ) . subst ( self . tcx , substs1) ;
1389- let sig2 = EarlyBinder ( self . tcx . fn_sig ( * did2) ) . subst ( self . tcx , substs2) ;
1388+ let sig1 = self . tcx . bound_fn_sig ( * did1) . subst ( self . tcx , substs1) ;
1389+ let sig2 = self . tcx . bound_fn_sig ( * did2) . subst ( self . tcx , substs2) ;
13901390 let mut values = self . cmp_fn_sig ( & sig1, & sig2) ;
13911391 let path1 = format ! ( " {{{}}}" , self . tcx. def_path_str_with_substs( * did1, substs1) ) ;
13921392 let path2 = format ! ( " {{{}}}" , self . tcx. def_path_str_with_substs( * did2, substs2) ) ;
@@ -1397,7 +1397,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
13971397 }
13981398
13991399 ( ty:: FnDef ( did1, substs1) , ty:: FnPtr ( sig2) ) => {
1400- let sig1 = EarlyBinder ( self . tcx . fn_sig ( * did1) ) . subst ( self . tcx , substs1) ;
1400+ let sig1 = self . tcx . bound_fn_sig ( * did1) . subst ( self . tcx , substs1) ;
14011401 let mut values = self . cmp_fn_sig ( & sig1, sig2) ;
14021402 values. 0 . push_highlighted ( format ! (
14031403 " {{{}}}" ,
@@ -1407,7 +1407,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
14071407 }
14081408
14091409 ( ty:: FnPtr ( sig1) , ty:: FnDef ( did2, substs2) ) => {
1410- let sig2 = EarlyBinder ( self . tcx . fn_sig ( * did2) ) . subst ( self . tcx , substs2) ;
1410+ let sig2 = self . tcx . bound_fn_sig ( * did2) . subst ( self . tcx , substs2) ;
14111411 let mut values = self . cmp_fn_sig ( sig1, & sig2) ;
14121412 values. 1 . push_normal ( format ! (
14131413 " {{{}}}" ,
0 commit comments