@@ -138,7 +138,6 @@ fn create_mapping<'tcx>(
138138 tcx : TyCtxt < ' tcx > ,
139139 sig_id : DefId ,
140140 def_id : LocalDefId ,
141- args : & [ ty:: GenericArg < ' tcx > ] ,
142141) -> FxHashMap < u32 , u32 > {
143142 let mut mapping: FxHashMap < u32 , u32 > = Default :: default ( ) ;
144143
@@ -176,13 +175,6 @@ fn create_mapping<'tcx>(
176175 }
177176 }
178177
179- // If there are still unmapped lifetimes left and we are to map types and maybe self
180- // then skip them, now it is the case when we generated more lifetimes then needed.
181- // FIXME(fn_delegation): proper support for late bound lifetimes.
182- while args_index < args. len ( ) && args[ args_index] . as_region ( ) . is_some ( ) {
183- args_index += 1 ;
184- }
185-
186178 // If self after lifetimes insert mapping, relying that self is at 0 in sig parent.
187179 if matches ! ( self_pos_kind, SelfPositionKind :: AfterLifetimes ) {
188180 mapping. insert ( 0 , args_index as u32 ) ;
@@ -511,7 +503,7 @@ fn create_folder_and_args<'tcx>(
511503 child_args : & ' tcx [ ty:: GenericArg < ' tcx > ] ,
512504) -> ( ParamIndexRemapper < ' tcx > , Vec < ty:: GenericArg < ' tcx > > ) {
513505 let args = create_generic_args ( tcx, sig_id, def_id, parent_args, child_args) ;
514- let remap_table = create_mapping ( tcx, sig_id, def_id, & args ) ;
506+ let remap_table = create_mapping ( tcx, sig_id, def_id) ;
515507
516508 ( ParamIndexRemapper { tcx, remap_table } , args)
517509}
0 commit comments