@@ -400,9 +400,6 @@ declare_features! (
400
400
// Allows `#[repr(packed)]` attribute on structs.
401
401
( active, repr_packed, "1.26.0" , Some ( 33158 ) , None ) ,
402
402
403
- // Allows `use path as _;` and `extern crate c as _;`.
404
- ( active, underscore_imports, "1.26.0" , Some ( 48216 ) , None ) ,
405
-
406
403
// Allows macro invocations in `extern {}` blocks.
407
404
( active, macros_in_extern, "1.27.0" , Some ( 49476 ) , None ) ,
408
405
@@ -694,6 +691,8 @@ declare_features! (
694
691
( accepted, self_struct_ctor, "1.32.0" , Some ( 51994 ) , None ) ,
695
692
// `Self` in type definitions (RFC 2300)
696
693
( accepted, self_in_typedefs, "1.32.0" , Some ( 49303 ) , None ) ,
694
+ // `use path as _;` and `extern crate c as _;`
695
+ ( accepted, underscore_imports, "1.33.0" , Some ( 48216 ) , None ) ,
697
696
) ;
698
697
699
698
// If you change this, please modify `src/doc/unstable-book` as well. You must
@@ -1547,26 +1546,8 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
1547
1546
}
1548
1547
}
1549
1548
1550
- fn visit_use_tree ( & mut self , use_tree : & ' a ast:: UseTree , id : NodeId , _nested : bool ) {
1551
- if let ast:: UseTreeKind :: Simple ( Some ( ident) , ..) = use_tree. kind {
1552
- if ident. name == "_" {
1553
- gate_feature_post ! ( & self , underscore_imports, use_tree. span,
1554
- "renaming imports with `_` is unstable" ) ;
1555
- }
1556
- }
1557
-
1558
- visit:: walk_use_tree ( self , use_tree, id) ;
1559
- }
1560
-
1561
1549
fn visit_item ( & mut self , i : & ' a ast:: Item ) {
1562
1550
match i. node {
1563
- ast:: ItemKind :: ExternCrate ( _) => {
1564
- if i. ident . name == "_" {
1565
- gate_feature_post ! ( & self , underscore_imports, i. span,
1566
- "renaming extern crates with `_` is unstable" ) ;
1567
- }
1568
- }
1569
-
1570
1551
ast:: ItemKind :: Static ( ..) |
1571
1552
ast:: ItemKind :: Const ( _, _) => {
1572
1553
if i. ident . name == "_" {
0 commit comments