@@ -260,9 +260,6 @@ declare_features! (
260260 // impl specialization (RFC 1210)
261261 ( active, specialization, "1.7.0" , Some ( 31844 ) ) ,
262262
263- // pub(restricted) visibilities (RFC 1422)
264- ( active, pub_restricted, "1.9.0" , Some ( 32409 ) ) ,
265-
266263 // Allow Drop types in statics/const functions (RFC 1440)
267264 ( active, drop_types_in_const, "1.9.0" , Some ( 33156 ) ) ,
268265
@@ -406,6 +403,9 @@ declare_features! (
406403 ( accepted, field_init_shorthand, "1.17.0" , Some ( 37340 ) ) ,
407404 // Allows the definition recursive static items.
408405 ( accepted, static_recursion, "1.17.0" , Some ( 29719 ) ) ,
406+ // pub(restricted) visibilities (RFC 1422)
407+ ( accepted, pub_restricted, "1.17.0" , Some ( 32409 ) ) ,
408+
409409) ;
410410// If you change this, please modify src/doc/unstable-book as well. You must
411411// move that documentation into the relevant place in the other docs, and
@@ -1410,17 +1410,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
14101410 visit:: walk_impl_item ( self , ii) ;
14111411 }
14121412
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-
14241413 fn visit_generics ( & mut self , g : & ' a ast:: Generics ) {
14251414 for t in & g. ty_params {
14261415 if !t. attrs . is_empty ( ) {
0 commit comments