@@ -288,9 +288,6 @@ declare_features! (
288288 // rustc internal
289289 ( active, compiler_builtins, "1.13.0" , None , None ) ,
290290
291- // Allows attributes on lifetime/type formal parameters in generics (RFC 1327)
292- ( active, generic_param_attrs, "1.11.0" , Some ( 34761 ) , None ) ,
293-
294291 // Allows #[link(..., cfg(..))]
295292 ( active, link_cfg, "1.14.0" , Some ( 37406 ) , None ) ,
296293
@@ -566,6 +563,8 @@ declare_features! (
566563 ( accepted, match_default_bindings, "1.26.0" , Some ( 42640 ) , None ) ,
567564 // allow `'_` placeholder lifetimes
568565 ( accepted, underscore_lifetimes, "1.26.0" , Some ( 44524 ) , None ) ,
566+ // Allows attributes on lifetime/type formal parameters in generics (RFC 1327)
567+ ( accepted, generic_param_attrs, "1.26.0" , Some ( 48848 ) , None ) ,
569568) ;
570569
571570// If you change this, please modify src/doc/unstable-book as well. You must
@@ -1775,21 +1774,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
17751774 }
17761775 visit:: walk_vis ( self , vis) ;
17771776 }
1778-
1779- fn visit_generic_param ( & mut self , param : & ' a ast:: GenericParam ) {
1780- let ( attrs, explain) = match * param {
1781- ast:: GenericParam :: Lifetime ( ref ld) =>
1782- ( & ld. attrs , "attributes on lifetime bindings are experimental" ) ,
1783- ast:: GenericParam :: Type ( ref t) =>
1784- ( & t. attrs , "attributes on type parameter bindings are experimental" ) ,
1785- } ;
1786-
1787- if !attrs. is_empty ( ) {
1788- gate_feature_post ! ( & self , generic_param_attrs, attrs[ 0 ] . span, explain) ;
1789- }
1790-
1791- visit:: walk_generic_param ( self , param)
1792- }
17931777}
17941778
17951779pub fn get_features ( span_handler : & Handler , krate_attrs : & [ ast:: Attribute ] ,
0 commit comments