@@ -55,7 +55,6 @@ pub enum Node<'hir> {
5555 NodeTraitRef ( & ' hir TraitRef ) ,
5656 NodeLocal ( & ' hir Pat ) ,
5757 NodePat ( & ' hir Pat ) ,
58- NodeImplArg ( & ' hir ImplArg ) ,
5958 NodeBlock ( & ' hir Block ) ,
6059
6160 /// NodeStructCtor represents a tuple struct.
@@ -85,7 +84,6 @@ enum MapEntry<'hir> {
8584 EntryTy ( NodeId , & ' hir Ty ) ,
8685 EntryTraitRef ( NodeId , & ' hir TraitRef ) ,
8786 EntryLocal ( NodeId , & ' hir Pat ) ,
88- EntryImplArg ( NodeId , & ' hir ImplArg ) ,
8987 EntryPat ( NodeId , & ' hir Pat ) ,
9088 EntryBlock ( NodeId , & ' hir Block ) ,
9189 EntryStructCtor ( NodeId , & ' hir VariantData ) ,
@@ -117,7 +115,6 @@ impl<'hir> MapEntry<'hir> {
117115 NodeTy ( n) => EntryTy ( p, n) ,
118116 NodeTraitRef ( n) => EntryTraitRef ( p, n) ,
119117 NodeLocal ( n) => EntryLocal ( p, n) ,
120- NodeImplArg ( n) => EntryImplArg ( p, n) ,
121118 NodePat ( n) => EntryPat ( p, n) ,
122119 NodeBlock ( n) => EntryBlock ( p, n) ,
123120 NodeStructCtor ( n) => EntryStructCtor ( p, n) ,
@@ -139,7 +136,6 @@ impl<'hir> MapEntry<'hir> {
139136 EntryStmt ( id, _) => id,
140137 EntryTy ( id, _) => id,
141138 EntryTraitRef ( id, _) => id,
142- EntryImplArg ( id, _) => id,
143139 EntryLocal ( id, _) => id,
144140 EntryPat ( id, _) => id,
145141 EntryBlock ( id, _) => id,
@@ -166,7 +162,6 @@ impl<'hir> MapEntry<'hir> {
166162 EntryTy ( _, n) => NodeTy ( n) ,
167163 EntryTraitRef ( _, n) => NodeTraitRef ( n) ,
168164 EntryLocal ( _, n) => NodeLocal ( n) ,
169- EntryImplArg ( _, n) => NodeImplArg ( n) ,
170165 EntryPat ( _, n) => NodePat ( n) ,
171166 EntryBlock ( _, n) => NodeBlock ( n) ,
172167 EntryStructCtor ( _, n) => NodeStructCtor ( n) ,
@@ -327,7 +322,6 @@ impl<'hir> Map<'hir> {
327322 EntryTy ( p, _) |
328323 EntryTraitRef ( p, _) |
329324 EntryLocal ( p, _) |
330- EntryImplArg ( p, _) |
331325 EntryPat ( p, _) |
332326 EntryBlock ( p, _) |
333327 EntryStructCtor ( p, _) |
@@ -903,7 +897,6 @@ impl<'hir> Map<'hir> {
903897 Some ( EntryTy ( _, ty) ) => ty. span ,
904898 Some ( EntryTraitRef ( _, tr) ) => tr. path . span ,
905899 Some ( EntryLocal ( _, pat) ) => pat. span ,
906- Some ( EntryImplArg ( _, impl_arg) ) => impl_arg. span ,
907900 Some ( EntryPat ( _, pat) ) => pat. span ,
908901 Some ( EntryBlock ( _, block) ) => block. span ,
909902 Some ( EntryStructCtor ( _, _) ) => self . expect_item ( self . get_parent ( id) ) . span ,
@@ -1113,7 +1106,6 @@ impl<'a> print::State<'a> {
11131106 }
11141107 NodeLifetime ( a) => self . print_lifetime ( & a) ,
11151108 NodeVisibility ( a) => self . print_visibility ( & a) ,
1116- NodeImplArg ( _) => bug ! ( "cannot print ImplArg" ) ,
11171109 NodeTyParam ( _) => bug ! ( "cannot print TyParam" ) ,
11181110 NodeField ( _) => bug ! ( "cannot print StructField" ) ,
11191111 // these cases do not carry enough information in the
@@ -1215,9 +1207,6 @@ fn node_id_to_string(map: &Map, id: NodeId, include_id: bool) -> String {
12151207 Some ( NodeLocal ( _) ) => {
12161208 format ! ( "local {}{}" , map. node_to_pretty_string( id) , id_str)
12171209 }
1218- Some ( NodeImplArg ( _) ) => {
1219- format ! ( "impl_arg {}{}" , map. node_to_pretty_string( id) , id_str)
1220- }
12211210 Some ( NodePat ( _) ) => {
12221211 format ! ( "pat {}{}" , map. node_to_pretty_string( id) , id_str)
12231212 }
0 commit comments