@@ -55,7 +55,6 @@ pub enum Node<'hir> {
55
55
NodeTraitRef ( & ' hir TraitRef ) ,
56
56
NodeLocal ( & ' hir Pat ) ,
57
57
NodePat ( & ' hir Pat ) ,
58
- NodeImplArg ( & ' hir ImplArg ) ,
59
58
NodeBlock ( & ' hir Block ) ,
60
59
61
60
/// NodeStructCtor represents a tuple struct.
@@ -85,7 +84,6 @@ enum MapEntry<'hir> {
85
84
EntryTy ( NodeId , & ' hir Ty ) ,
86
85
EntryTraitRef ( NodeId , & ' hir TraitRef ) ,
87
86
EntryLocal ( NodeId , & ' hir Pat ) ,
88
- EntryImplArg ( NodeId , & ' hir ImplArg ) ,
89
87
EntryPat ( NodeId , & ' hir Pat ) ,
90
88
EntryBlock ( NodeId , & ' hir Block ) ,
91
89
EntryStructCtor ( NodeId , & ' hir VariantData ) ,
@@ -117,7 +115,6 @@ impl<'hir> MapEntry<'hir> {
117
115
NodeTy ( n) => EntryTy ( p, n) ,
118
116
NodeTraitRef ( n) => EntryTraitRef ( p, n) ,
119
117
NodeLocal ( n) => EntryLocal ( p, n) ,
120
- NodeImplArg ( n) => EntryImplArg ( p, n) ,
121
118
NodePat ( n) => EntryPat ( p, n) ,
122
119
NodeBlock ( n) => EntryBlock ( p, n) ,
123
120
NodeStructCtor ( n) => EntryStructCtor ( p, n) ,
@@ -139,7 +136,6 @@ impl<'hir> MapEntry<'hir> {
139
136
EntryStmt ( id, _) => id,
140
137
EntryTy ( id, _) => id,
141
138
EntryTraitRef ( id, _) => id,
142
- EntryImplArg ( id, _) => id,
143
139
EntryLocal ( id, _) => id,
144
140
EntryPat ( id, _) => id,
145
141
EntryBlock ( id, _) => id,
@@ -166,7 +162,6 @@ impl<'hir> MapEntry<'hir> {
166
162
EntryTy ( _, n) => NodeTy ( n) ,
167
163
EntryTraitRef ( _, n) => NodeTraitRef ( n) ,
168
164
EntryLocal ( _, n) => NodeLocal ( n) ,
169
- EntryImplArg ( _, n) => NodeImplArg ( n) ,
170
165
EntryPat ( _, n) => NodePat ( n) ,
171
166
EntryBlock ( _, n) => NodeBlock ( n) ,
172
167
EntryStructCtor ( _, n) => NodeStructCtor ( n) ,
@@ -327,7 +322,6 @@ impl<'hir> Map<'hir> {
327
322
EntryTy ( p, _) |
328
323
EntryTraitRef ( p, _) |
329
324
EntryLocal ( p, _) |
330
- EntryImplArg ( p, _) |
331
325
EntryPat ( p, _) |
332
326
EntryBlock ( p, _) |
333
327
EntryStructCtor ( p, _) |
@@ -903,7 +897,6 @@ impl<'hir> Map<'hir> {
903
897
Some ( EntryTy ( _, ty) ) => ty. span ,
904
898
Some ( EntryTraitRef ( _, tr) ) => tr. path . span ,
905
899
Some ( EntryLocal ( _, pat) ) => pat. span ,
906
- Some ( EntryImplArg ( _, impl_arg) ) => impl_arg. span ,
907
900
Some ( EntryPat ( _, pat) ) => pat. span ,
908
901
Some ( EntryBlock ( _, block) ) => block. span ,
909
902
Some ( EntryStructCtor ( _, _) ) => self . expect_item ( self . get_parent ( id) ) . span ,
@@ -1113,7 +1106,6 @@ impl<'a> print::State<'a> {
1113
1106
}
1114
1107
NodeLifetime ( a) => self . print_lifetime ( & a) ,
1115
1108
NodeVisibility ( a) => self . print_visibility ( & a) ,
1116
- NodeImplArg ( _) => bug ! ( "cannot print ImplArg" ) ,
1117
1109
NodeTyParam ( _) => bug ! ( "cannot print TyParam" ) ,
1118
1110
NodeField ( _) => bug ! ( "cannot print StructField" ) ,
1119
1111
// 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 {
1215
1207
Some ( NodeLocal ( _) ) => {
1216
1208
format ! ( "local {}{}" , map. node_to_pretty_string( id) , id_str)
1217
1209
}
1218
- Some ( NodeImplArg ( _) ) => {
1219
- format ! ( "impl_arg {}{}" , map. node_to_pretty_string( id) , id_str)
1220
- }
1221
1210
Some ( NodePat ( _) ) => {
1222
1211
format ! ( "pat {}{}" , map. node_to_pretty_string( id) , id_str)
1223
1212
}
0 commit comments