@@ -260,9 +260,6 @@ declare_features! (
260
260
// impl specialization (RFC 1210)
261
261
( active, specialization, "1.7.0" , Some ( 31844 ) ) ,
262
262
263
- // pub(restricted) visibilities (RFC 1422)
264
- ( active, pub_restricted, "1.9.0" , Some ( 32409 ) ) ,
265
-
266
263
// Allow Drop types in statics/const functions (RFC 1440)
267
264
( active, drop_types_in_const, "1.9.0" , Some ( 33156 ) ) ,
268
265
@@ -406,6 +403,9 @@ declare_features! (
406
403
( accepted, field_init_shorthand, "1.17.0" , Some ( 37340 ) ) ,
407
404
// Allows the definition recursive static items.
408
405
( accepted, static_recursion, "1.17.0" , Some ( 29719 ) ) ,
406
+ // pub(restricted) visibilities (RFC 1422)
407
+ ( accepted, pub_restricted, "1.17.0" , Some ( 32409 ) ) ,
408
+
409
409
) ;
410
410
// If you change this, please modify src/doc/unstable-book as well. You must
411
411
// move that documentation into the relevant place in the other docs, and
@@ -1410,17 +1410,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
1410
1410
visit:: walk_impl_item ( self , ii) ;
1411
1411
}
1412
1412
1413
- fn visit_vis ( & mut self , vis : & ' a ast:: Visibility ) {
1414
- let span = match * vis {
1415
- ast:: Visibility :: Crate ( span) => span,
1416
- ast:: Visibility :: Restricted { ref path, .. } => path. span ,
1417
- _ => return ,
1418
- } ;
1419
- gate_feature_post ! ( & self , pub_restricted, span, "`pub(restricted)` syntax is experimental" ) ;
1420
-
1421
- visit:: walk_vis ( self , vis)
1422
- }
1423
-
1424
1413
fn visit_generics ( & mut self , g : & ' a ast:: Generics ) {
1425
1414
for t in & g. ty_params {
1426
1415
if !t. attrs . is_empty ( ) {
0 commit comments