@@ -288,9 +288,6 @@ declare_features! (
288
288
// rustc internal
289
289
( active, compiler_builtins, "1.13.0" , None , None ) ,
290
290
291
- // Allows attributes on lifetime/type formal parameters in generics (RFC 1327)
292
- ( active, generic_param_attrs, "1.11.0" , Some ( 34761 ) , None ) ,
293
-
294
291
// Allows #[link(..., cfg(..))]
295
292
( active, link_cfg, "1.14.0" , Some ( 37406 ) , None ) ,
296
293
@@ -566,6 +563,8 @@ declare_features! (
566
563
( accepted, match_default_bindings, "1.26.0" , Some ( 42640 ) , None ) ,
567
564
// allow `'_` placeholder lifetimes
568
565
( 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 ) ,
569
568
) ;
570
569
571
570
// 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> {
1775
1774
}
1776
1775
visit:: walk_vis ( self , vis) ;
1777
1776
}
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
- }
1793
1777
}
1794
1778
1795
1779
pub fn get_features ( span_handler : & Handler , krate_attrs : & [ ast:: Attribute ] ,
0 commit comments