@@ -118,7 +118,6 @@ pub enum Node<'ast> {
118
118
NodeVariant ( & ' ast Variant ) ,
119
119
NodeExpr ( & ' ast Expr ) ,
120
120
NodeStmt ( & ' ast Stmt ) ,
121
- NodeArg ( & ' ast Pat ) ,
122
121
NodeLocal ( & ' ast Pat ) ,
123
122
NodePat ( & ' ast Pat ) ,
124
123
NodeBlock ( & ' ast Block ) ,
@@ -145,7 +144,6 @@ pub enum MapEntry<'ast> {
145
144
EntryVariant ( NodeId , & ' ast Variant ) ,
146
145
EntryExpr ( NodeId , & ' ast Expr ) ,
147
146
EntryStmt ( NodeId , & ' ast Stmt ) ,
148
- EntryArg ( NodeId , & ' ast Pat ) ,
149
147
EntryLocal ( NodeId , & ' ast Pat ) ,
150
148
EntryPat ( NodeId , & ' ast Pat ) ,
151
149
EntryBlock ( NodeId , & ' ast Block ) ,
@@ -180,7 +178,6 @@ impl<'ast> MapEntry<'ast> {
180
178
NodeVariant ( n) => EntryVariant ( p, n) ,
181
179
NodeExpr ( n) => EntryExpr ( p, n) ,
182
180
NodeStmt ( n) => EntryStmt ( p, n) ,
183
- NodeArg ( n) => EntryArg ( p, n) ,
184
181
NodeLocal ( n) => EntryLocal ( p, n) ,
185
182
NodePat ( n) => EntryPat ( p, n) ,
186
183
NodeBlock ( n) => EntryBlock ( p, n) ,
@@ -199,7 +196,6 @@ impl<'ast> MapEntry<'ast> {
199
196
EntryVariant ( id, _) => id,
200
197
EntryExpr ( id, _) => id,
201
198
EntryStmt ( id, _) => id,
202
- EntryArg ( id, _) => id,
203
199
EntryLocal ( id, _) => id,
204
200
EntryPat ( id, _) => id,
205
201
EntryBlock ( id, _) => id,
@@ -219,7 +215,6 @@ impl<'ast> MapEntry<'ast> {
219
215
EntryVariant ( _, n) => NodeVariant ( n) ,
220
216
EntryExpr ( _, n) => NodeExpr ( n) ,
221
217
EntryStmt ( _, n) => NodeStmt ( n) ,
222
- EntryArg ( _, n) => NodeArg ( n) ,
223
218
EntryLocal ( _, n) => NodeLocal ( n) ,
224
219
EntryPat ( _, n) => NodePat ( n) ,
225
220
EntryBlock ( _, n) => NodeBlock ( n) ,
@@ -649,7 +644,7 @@ impl<'ast> Map<'ast> {
649
644
Some ( NodeVariant ( variant) ) => variant. span ,
650
645
Some ( NodeExpr ( expr) ) => expr. span ,
651
646
Some ( NodeStmt ( stmt) ) => stmt. span ,
652
- Some ( NodeArg ( pat ) ) | Some ( NodeLocal ( pat) ) => pat. span ,
647
+ Some ( NodeLocal ( pat) ) => pat. span ,
653
648
Some ( NodePat ( pat) ) => pat. span ,
654
649
Some ( NodeBlock ( block) ) => block. span ,
655
650
Some ( NodeStructCtor ( _) ) => self . expect_item ( self . get_parent ( id) ) . span ,
@@ -907,7 +902,6 @@ impl<'a> NodePrinter for pprust::State<'a> {
907
902
// ast_map to reconstruct their full structure for pretty
908
903
// printing.
909
904
NodeLocal ( _) => panic ! ( "cannot print isolated Local" ) ,
910
- NodeArg ( _) => panic ! ( "cannot print isolated Arg" ) ,
911
905
NodeStructCtor ( _) => panic ! ( "cannot print isolated StructCtor" ) ,
912
906
}
913
907
}
@@ -986,9 +980,6 @@ fn node_id_to_string(map: &Map, id: NodeId, include_id: bool) -> String {
986
980
Some ( NodeStmt ( ref stmt) ) => {
987
981
format ! ( "stmt {}{}" , pprust:: stmt_to_string( & * * stmt) , id_str)
988
982
}
989
- Some ( NodeArg ( ref pat) ) => {
990
- format ! ( "arg {}{}" , pprust:: pat_to_string( & * * pat) , id_str)
991
- }
992
983
Some ( NodeLocal ( ref pat) ) => {
993
984
format ! ( "local {}{}" , pprust:: pat_to_string( & * * pat) , id_str)
994
985
}
0 commit comments