@@ -26,7 +26,7 @@ use self::AttributeType::*;
26
26
use self :: AttributeGate :: * ;
27
27
28
28
use abi:: Abi ;
29
- use ast:: { self , NodeId , PatKind , RangeEnd , RangeSyntax } ;
29
+ use ast:: { self , NodeId , PatKind , RangeEnd } ;
30
30
use attr;
31
31
use epoch:: Epoch ;
32
32
use codemap:: Spanned ;
@@ -399,9 +399,6 @@ declare_features! (
399
399
// allow `'_` placeholder lifetimes
400
400
( active, underscore_lifetimes, "1.22.0" , Some ( 44524 ) , None ) ,
401
401
402
- // allow `..=` in patterns (RFC 1192)
403
- ( active, dotdoteq_in_patterns, "1.22.0" , Some ( 28237 ) , None ) ,
404
-
405
402
// Default match binding modes (RFC 2005)
406
403
( active, match_default_bindings, "1.22.0" , Some ( 42640 ) , None ) ,
407
404
@@ -553,6 +550,8 @@ declare_features! (
553
550
( accepted, use_nested_groups, "1.25.0" , Some ( 44494 ) , None ) ,
554
551
// a..=b and ..=b
555
552
( accepted, inclusive_range_syntax, "1.26.0" , Some ( 28237 ) , None ) ,
553
+ // allow `..=` in patterns (RFC 1192)
554
+ ( accepted, dotdoteq_in_patterns, "1.26.0" , Some ( 28237 ) , None ) ,
556
555
) ;
557
556
558
557
// If you change this, please modify src/doc/unstable-book as well. You must
@@ -1652,10 +1651,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
1652
1651
gate_feature_post ! ( & self , exclusive_range_pattern, pattern. span,
1653
1652
"exclusive range pattern syntax is experimental" ) ;
1654
1653
}
1655
- PatKind :: Range ( _, _, RangeEnd :: Included ( RangeSyntax :: DotDotEq ) ) => {
1656
- gate_feature_post ! ( & self , dotdoteq_in_patterns, pattern. span,
1657
- "`..=` syntax in patterns is experimental" ) ;
1658
- }
1659
1654
PatKind :: Paren ( ..) => {
1660
1655
gate_feature_post ! ( & self , pattern_parentheses, pattern. span,
1661
1656
"parentheses in patterns are unstable" ) ;
0 commit comments