@@ -695,9 +695,10 @@ impl<'a> LoweringContext<'a> {
695695 hir:: GenericParam {
696696 id : def_node_id,
697697 name : hir_name,
698+ attrs : hir_vec ! [ ] ,
699+ bounds : hir_vec ! [ ] ,
698700 span,
699701 pure_wrt_drop : false ,
700- bounds : vec ! [ ] . into ( ) ,
701702 kind : hir:: GenericParamKind :: Lifetime { in_band : true }
702703 }
703704 } )
@@ -1239,11 +1240,11 @@ impl<'a> LoweringContext<'a> {
12391240 name : ParamName :: Plain ( name) ,
12401241 span,
12411242 pure_wrt_drop : false ,
1243+ attrs : hir_vec ! [ ] ,
12421244 bounds : hir_bounds,
12431245 kind : hir:: GenericParamKind :: Type {
12441246 default : None ,
12451247 synthetic : Some ( hir:: SyntheticTyParamKind :: ImplTrait ) ,
1246- attrs : P :: new ( ) ,
12471248 }
12481249 } ) ;
12491250
@@ -1413,7 +1414,8 @@ impl<'a> LoweringContext<'a> {
14131414 name,
14141415 span : lifetime. span ,
14151416 pure_wrt_drop : false ,
1416- bounds : vec ! [ ] . into ( ) ,
1417+ attrs : hir_vec ! [ ] ,
1418+ bounds : hir_vec ! [ ] ,
14171419 kind : hir:: GenericParamKind :: Lifetime {
14181420 in_band : false ,
14191421 }
@@ -1950,6 +1952,7 @@ impl<'a> LoweringContext<'a> {
19501952 name : param_name,
19511953 span : lt. span ,
19521954 pure_wrt_drop : attr:: contains_name ( & param. attrs , "may_dangle" ) ,
1955+ attrs : self . lower_attrs ( & param. attrs ) ,
19531956 bounds,
19541957 kind : hir:: GenericParamKind :: Lifetime { in_band : false }
19551958 } ;
@@ -1980,6 +1983,7 @@ impl<'a> LoweringContext<'a> {
19801983 name : hir:: ParamName :: Plain ( name) ,
19811984 span : param. ident . span ,
19821985 pure_wrt_drop : attr:: contains_name ( & param. attrs , "may_dangle" ) ,
1986+ attrs : self . lower_attrs ( & param. attrs ) ,
19831987 bounds,
19841988 kind : hir:: GenericParamKind :: Type {
19851989 default : default. as_ref ( ) . map ( |x| {
@@ -1989,7 +1993,6 @@ impl<'a> LoweringContext<'a> {
19891993 . filter ( |attr| attr. check_name ( "rustc_synthetic" ) )
19901994 . map ( |_| hir:: SyntheticTyParamKind :: ImplTrait )
19911995 . next ( ) ,
1992- attrs : self . lower_attrs ( & param. attrs ) ,
19931996 }
19941997 }
19951998 }
0 commit comments