@@ -118,7 +118,6 @@ pub enum Node<'ast> {
118118 NodeVariant ( & ' ast Variant ) ,
119119 NodeExpr ( & ' ast Expr ) ,
120120 NodeStmt ( & ' ast Stmt ) ,
121- NodeArg ( & ' ast Pat ) ,
122121 NodeLocal ( & ' ast Pat ) ,
123122 NodePat ( & ' ast Pat ) ,
124123 NodeBlock ( & ' ast Block ) ,
@@ -145,7 +144,6 @@ pub enum MapEntry<'ast> {
145144 EntryVariant ( NodeId , & ' ast Variant ) ,
146145 EntryExpr ( NodeId , & ' ast Expr ) ,
147146 EntryStmt ( NodeId , & ' ast Stmt ) ,
148- EntryArg ( NodeId , & ' ast Pat ) ,
149147 EntryLocal ( NodeId , & ' ast Pat ) ,
150148 EntryPat ( NodeId , & ' ast Pat ) ,
151149 EntryBlock ( NodeId , & ' ast Block ) ,
@@ -180,7 +178,6 @@ impl<'ast> MapEntry<'ast> {
180178 NodeVariant ( n) => EntryVariant ( p, n) ,
181179 NodeExpr ( n) => EntryExpr ( p, n) ,
182180 NodeStmt ( n) => EntryStmt ( p, n) ,
183- NodeArg ( n) => EntryArg ( p, n) ,
184181 NodeLocal ( n) => EntryLocal ( p, n) ,
185182 NodePat ( n) => EntryPat ( p, n) ,
186183 NodeBlock ( n) => EntryBlock ( p, n) ,
@@ -199,7 +196,6 @@ impl<'ast> MapEntry<'ast> {
199196 EntryVariant ( id, _) => id,
200197 EntryExpr ( id, _) => id,
201198 EntryStmt ( id, _) => id,
202- EntryArg ( id, _) => id,
203199 EntryLocal ( id, _) => id,
204200 EntryPat ( id, _) => id,
205201 EntryBlock ( id, _) => id,
@@ -219,7 +215,6 @@ impl<'ast> MapEntry<'ast> {
219215 EntryVariant ( _, n) => NodeVariant ( n) ,
220216 EntryExpr ( _, n) => NodeExpr ( n) ,
221217 EntryStmt ( _, n) => NodeStmt ( n) ,
222- EntryArg ( _, n) => NodeArg ( n) ,
223218 EntryLocal ( _, n) => NodeLocal ( n) ,
224219 EntryPat ( _, n) => NodePat ( n) ,
225220 EntryBlock ( _, n) => NodeBlock ( n) ,
@@ -649,7 +644,7 @@ impl<'ast> Map<'ast> {
649644 Some ( NodeVariant ( variant) ) => variant. span ,
650645 Some ( NodeExpr ( expr) ) => expr. span ,
651646 Some ( NodeStmt ( stmt) ) => stmt. span ,
652- Some ( NodeArg ( pat ) ) | Some ( NodeLocal ( pat) ) => pat. span ,
647+ Some ( NodeLocal ( pat) ) => pat. span ,
653648 Some ( NodePat ( pat) ) => pat. span ,
654649 Some ( NodeBlock ( block) ) => block. span ,
655650 Some ( NodeStructCtor ( _) ) => self . expect_item ( self . get_parent ( id) ) . span ,
@@ -907,7 +902,6 @@ impl<'a> NodePrinter for pprust::State<'a> {
907902 // ast_map to reconstruct their full structure for pretty
908903 // printing.
909904 NodeLocal ( _) => panic ! ( "cannot print isolated Local" ) ,
910- NodeArg ( _) => panic ! ( "cannot print isolated Arg" ) ,
911905 NodeStructCtor ( _) => panic ! ( "cannot print isolated StructCtor" ) ,
912906 }
913907 }
@@ -986,9 +980,6 @@ fn node_id_to_string(map: &Map, id: NodeId, include_id: bool) -> String {
986980 Some ( NodeStmt ( ref stmt) ) => {
987981 format ! ( "stmt {}{}" , pprust:: stmt_to_string( & * * stmt) , id_str)
988982 }
989- Some ( NodeArg ( ref pat) ) => {
990- format ! ( "arg {}{}" , pprust:: pat_to_string( & * * pat) , id_str)
991- }
992983 Some ( NodeLocal ( ref pat) ) => {
993984 format ! ( "local {}{}" , pprust:: pat_to_string( & * * pat) , id_str)
994985 }
0 commit comments