@@ -406,7 +406,6 @@ fn check_associated_item(
406
406
}
407
407
ty:: AssocKind :: Fn => {
408
408
let sig = fcx. tcx . fn_sig ( item. def_id ) ;
409
- let sig = fcx. normalize_associated_types_in ( span, sig) ;
410
409
let hir_sig = sig_if_method. expect ( "bad signature for method" ) ;
411
410
check_fn_or_method (
412
411
fcx,
@@ -611,7 +610,6 @@ fn check_item_fn(
611
610
for_id ( tcx, item_id, span) . with_fcx ( |fcx| {
612
611
let def_id = tcx. hir ( ) . local_def_id ( item_id) ;
613
612
let sig = tcx. fn_sig ( def_id) ;
614
- let sig = fcx. normalize_associated_types_in ( span, sig) ;
615
613
let mut implied_bounds = vec ! [ ] ;
616
614
check_fn_or_method ( fcx, ident. span , sig, decl, def_id. to_def_id ( ) , & mut implied_bounds) ;
617
615
implied_bounds
@@ -902,8 +900,8 @@ fn check_fn_or_method<'fcx, 'tcx>(
902
900
def_id : DefId ,
903
901
implied_bounds : & mut Vec < Ty < ' tcx > > ,
904
902
) {
905
- let sig = fcx. normalize_associated_types_in ( span, sig) ;
906
903
let sig = fcx. tcx . liberate_late_bound_regions ( def_id, sig) ;
904
+ let sig = fcx. normalize_associated_types_in ( span, sig) ;
907
905
908
906
for ( & input_ty, ty) in iter:: zip ( sig. inputs ( ) , hir_decl. inputs ) {
909
907
fcx. register_wf_obligation ( input_ty. into ( ) , ty. span , ObligationCauseCode :: MiscObligation ) ;
@@ -1081,8 +1079,8 @@ fn check_method_receiver<'fcx, 'tcx>(
1081
1079
let span = fn_sig. decl . inputs [ 0 ] . span ;
1082
1080
1083
1081
let sig = fcx. tcx . fn_sig ( method. def_id ) ;
1084
- let sig = fcx. normalize_associated_types_in ( span, sig) ;
1085
1082
let sig = fcx. tcx . liberate_late_bound_regions ( method. def_id , sig) ;
1083
+ let sig = fcx. normalize_associated_types_in ( span, sig) ;
1086
1084
1087
1085
debug ! ( "check_method_receiver: sig={:?}" , sig) ;
1088
1086
0 commit comments