@@ -124,6 +124,9 @@ macro_rules! impl_for_for_stmt {
124124 ForHead :: UsingDecl ( ..) => {
125125 unreachable!( "using declaration must be removed by previous pass" )
126126 }
127+
128+ #[ cfg( feature = "unknown" ) ]
129+ _ => panic!( "unable to access unknown nodes" ) ,
127130 } ;
128131
129132 for_stmt. left = left;
@@ -420,6 +423,8 @@ impl AssignFolder {
420423 "Object rest pattern should be removed by es2018::object_rest_spread \
421424 pass"
422425 ) ,
426+ #[ cfg( feature = "unknown" ) ]
427+ _ => panic ! ( "unable to access unknown nodes" ) ,
423428 }
424429 }
425430 }
@@ -520,6 +525,8 @@ impl Destructuring {
520525 }
521526 Pat :: Rest ( ..) | Pat :: Expr ( ..) => params. push ( param) ,
522527 Pat :: Invalid ( ..) => { }
528+ #[ cfg( feature = "unknown" ) ]
529+ _ => panic ! ( "unable to access unknown nodes" ) ,
523530 }
524531 }
525532
@@ -1004,6 +1011,8 @@ impl VisitMut for AssignFolder {
10041011 "object rest pattern should be removed by \
10051012 es2018::object_rest_spread pass"
10061013 ) ,
1014+ #[ cfg( feature = "unknown" ) ]
1015+ _ => panic ! ( "unable to access unknown nodes" ) ,
10071016 }
10081017 }
10091018
@@ -1018,6 +1027,8 @@ impl VisitMut for AssignFolder {
10181027 }
10191028
10201029 AssignTargetPat :: Invalid ( ..) => unreachable ! ( ) ,
1030+ #[ cfg( feature = "unknown" ) ]
1031+ _ => panic ! ( "unable to access unknown nodes" ) ,
10211032 }
10221033 } ;
10231034 }
@@ -1295,6 +1306,8 @@ fn can_be_null(e: &Expr) -> bool {
12951306 | Expr :: TsSatisfies ( TsSatisfiesExpr { ref expr, .. } ) => can_be_null ( expr) ,
12961307
12971308 Expr :: Invalid ( ..) => unreachable ! ( ) ,
1309+ #[ cfg( feature = "unknown" ) ]
1310+ _ => panic ! ( "unable to access unknown nodes" ) ,
12981311 }
12991312}
13001313
0 commit comments