@@ -385,6 +385,9 @@ declare_features! (
385
385
// allow `'_` placeholder lifetimes
386
386
( active, underscore_lifetimes, "1.22.0" , Some ( 44524 ) , None ) ,
387
387
388
+ // Default match binding modes (RFC 2005)
389
+ ( active, match_default_bindings, "1.22.0" , Some ( 42640 ) , None ) ,
390
+
388
391
// Trait object syntax with `dyn` prefix
389
392
( active, dyn_trait, "1.22.0" , Some ( 44662 ) , Some ( Edition :: Edition2018 ) ) ,
390
393
@@ -562,6 +565,8 @@ declare_features! (
562
565
( accepted, i128_type, "1.26.0" , Some ( 35118 ) , None ) ,
563
566
// Default match binding modes (RFC 2005)
564
567
( accepted, match_default_bindings, "1.26.0" , Some ( 42640 ) , None ) ,
568
+ // allow `'_` placeholder lifetimes
569
+ ( accepted, underscore_lifetimes, "1.26.0" , Some ( 44524 ) , None ) ,
565
570
) ;
566
571
567
572
// If you change this, please modify src/doc/unstable-book as well. You must
@@ -1792,14 +1797,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
1792
1797
1793
1798
visit:: walk_generic_param ( self , param)
1794
1799
}
1795
-
1796
- fn visit_lifetime ( & mut self , lt : & ' a ast:: Lifetime ) {
1797
- if lt. ident . name == keywords:: UnderscoreLifetime . name ( ) {
1798
- gate_feature_post ! ( & self , underscore_lifetimes, lt. span,
1799
- "underscore lifetimes are unstable" ) ;
1800
- }
1801
- visit:: walk_lifetime ( self , lt)
1802
- }
1803
1800
}
1804
1801
1805
1802
pub fn get_features ( span_handler : & Handler , krate_attrs : & [ ast:: Attribute ] ,
0 commit comments