File tree 1 file changed +5
-8
lines changed
compiler/rustc_ast_lowering/src
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> {
1387
1387
1388
1388
let extra_lifetimes = self . resolver . take_extra_lifetime_params ( parent_node_id) ;
1389
1389
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
+
1398
1395
let impl_trait_bounds = std:: mem:: take ( & mut self . impl_trait_bounds ) ;
1399
1396
predicates. extend ( impl_trait_bounds. into_iter ( ) ) ;
1400
1397
You can’t perform that action at this time.
0 commit comments