@@ -13,7 +13,7 @@ use rustc_lint::LateContext;
13
13
use rustc_middle:: mir:: interpret:: { ConstValue , Scalar } ;
14
14
use rustc_middle:: ty:: subst:: { GenericArg , GenericArgKind , Subst } ;
15
15
use rustc_middle:: ty:: {
16
- self , AdtDef , Binder , EarlyBinder , FnSig , IntTy , Predicate , PredicateKind , Ty , TyCtxt , TypeFoldable , UintTy , VariantDiscr ,
16
+ self , AdtDef , Binder , FnSig , IntTy , Predicate , PredicateKind , Ty , TyCtxt , TypeFoldable , UintTy , VariantDiscr ,
17
17
} ;
18
18
use rustc_span:: symbol:: Ident ;
19
19
use rustc_span:: { sym, Span , Symbol , DUMMY_SP } ;
@@ -520,7 +520,7 @@ pub fn expr_sig<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'_>) -> Option<ExprFnS
520
520
let ty = cx. typeck_results ( ) . expr_ty_adjusted ( expr) . peel_refs ( ) ;
521
521
match * ty. kind ( ) {
522
522
ty:: Closure ( _, subs) => Some ( ExprFnSig :: Closure ( subs. as_closure ( ) . sig ( ) ) ) ,
523
- ty:: FnDef ( id, subs) => Some ( ExprFnSig :: Sig ( EarlyBinder ( cx. tcx . fn_sig ( id) ) . subst ( cx. tcx , subs) ) ) ,
523
+ ty:: FnDef ( id, subs) => Some ( ExprFnSig :: Sig ( cx. tcx . bound_fn_sig ( id) . subst ( cx. tcx , subs) ) ) ,
524
524
ty:: FnPtr ( sig) => Some ( ExprFnSig :: Sig ( sig) ) ,
525
525
ty:: Dynamic ( bounds, _) => {
526
526
let lang_items = cx. tcx . lang_items ( ) ;
0 commit comments