@@ -533,6 +533,10 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
533
533
visit:: walk_expr ( self , e)
534
534
}
535
535
536
+ fn visit_arm ( & mut self , arm : & ' a ast:: Arm ) {
537
+ visit:: walk_arm ( self , arm)
538
+ }
539
+
536
540
fn visit_pat ( & mut self , pattern : & ' a ast:: Pat ) {
537
541
match & pattern. kind {
538
542
PatKind :: Slice ( pats) => {
@@ -552,6 +556,11 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
552
556
}
553
557
}
554
558
}
559
+ PatKind :: Box ( ..) => {
560
+ gate_feature_post ! ( & self , box_patterns,
561
+ pattern. span,
562
+ "box pattern syntax is experimental" ) ;
563
+ }
555
564
PatKind :: Range ( _, _, Spanned { node : RangeEnd :: Excluded , .. } ) => {
556
565
gate_feature_post ! ( & self , exclusive_range_pattern, pattern. span,
557
566
"exclusive range pattern syntax is experimental" ) ;
@@ -561,7 +570,11 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
561
570
visit:: walk_pat ( self , pattern)
562
571
}
563
572
564
- fn visit_fn ( & mut self , fn_kind : FnKind < ' a > , fn_decl : & ' a ast:: FnDecl , span : Span , _: NodeId ) {
573
+ fn visit_fn ( & mut self ,
574
+ fn_kind : FnKind < ' a > ,
575
+ fn_decl : & ' a ast:: FnDecl ,
576
+ span : Span ,
577
+ _node_id : NodeId ) {
565
578
if let Some ( header) = fn_kind. header ( ) {
566
579
// Stability of const fn methods are covered in
567
580
// `visit_trait_item` and `visit_impl_item` below; this is
0 commit comments