@@ -1385,8 +1385,8 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
1385
1385
}
1386
1386
1387
1387
( 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) ;
1390
1390
let mut values = self . cmp_fn_sig ( & sig1, & sig2) ;
1391
1391
let path1 = format ! ( " {{{}}}" , self . tcx. def_path_str_with_substs( * did1, substs1) ) ;
1392
1392
let path2 = format ! ( " {{{}}}" , self . tcx. def_path_str_with_substs( * did2, substs2) ) ;
@@ -1397,7 +1397,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
1397
1397
}
1398
1398
1399
1399
( 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) ;
1401
1401
let mut values = self . cmp_fn_sig ( & sig1, sig2) ;
1402
1402
values. 0 . push_highlighted ( format ! (
1403
1403
" {{{}}}" ,
@@ -1407,7 +1407,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
1407
1407
}
1408
1408
1409
1409
( 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) ;
1411
1411
let mut values = self . cmp_fn_sig ( sig1, & sig2) ;
1412
1412
values. 1 . push_normal ( format ! (
1413
1413
" {{{}}}" ,
0 commit comments