File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
compiler/rustc_ast_lowering/src Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -1387,14 +1387,11 @@ impl<'hir> LoweringContext<'_, 'hir> {
13871387
13881388 let extra_lifetimes = self . resolver . take_extra_lifetime_params ( parent_node_id) ;
13891389 let impl_trait_defs = std:: mem:: take ( & mut self . impl_trait_defs ) ;
1390- params. extend (
1391- extra_lifetimes
1392- . into_iter ( )
1393- . filter_map ( |( ident, node_id, res) | {
1394- self . lifetime_res_to_generic_param ( ident, node_id, res)
1395- } )
1396- . chain ( impl_trait_defs. into_iter ( ) ) ,
1397- ) ;
1390+ params. extend ( extra_lifetimes. into_iter ( ) . filter_map ( |( ident, node_id, res) | {
1391+ self . lifetime_res_to_generic_param ( ident, node_id, res)
1392+ } ) ) ;
1393+ params. extend ( impl_trait_defs. into_iter ( ) ) ;
1394+
13981395 let impl_trait_bounds = std:: mem:: take ( & mut self . impl_trait_bounds ) ;
13991396 predicates. extend ( impl_trait_bounds. into_iter ( ) ) ;
14001397
You can’t perform that action at this time.
0 commit comments