@@ -53,7 +53,7 @@ pub enum Node<'hir> {
5353 NodeStmt ( & ' hir Stmt ) ,
5454 NodeTy ( & ' hir Ty ) ,
5555 NodeTraitRef ( & ' hir TraitRef ) ,
56- NodeLocal ( & ' hir Pat ) ,
56+ NodeBinding ( & ' hir Pat ) ,
5757 NodePat ( & ' hir Pat ) ,
5858 NodeBlock ( & ' hir Block ) ,
5959
@@ -83,7 +83,7 @@ enum MapEntry<'hir> {
8383 EntryStmt ( NodeId , & ' hir Stmt ) ,
8484 EntryTy ( NodeId , & ' hir Ty ) ,
8585 EntryTraitRef ( NodeId , & ' hir TraitRef ) ,
86- EntryLocal ( NodeId , & ' hir Pat ) ,
86+ EntryBinding ( NodeId , & ' hir Pat ) ,
8787 EntryPat ( NodeId , & ' hir Pat ) ,
8888 EntryBlock ( NodeId , & ' hir Block ) ,
8989 EntryStructCtor ( NodeId , & ' hir VariantData ) ,
@@ -114,7 +114,7 @@ impl<'hir> MapEntry<'hir> {
114114 NodeStmt ( n) => EntryStmt ( p, n) ,
115115 NodeTy ( n) => EntryTy ( p, n) ,
116116 NodeTraitRef ( n) => EntryTraitRef ( p, n) ,
117- NodeLocal ( n) => EntryLocal ( p, n) ,
117+ NodeBinding ( n) => EntryBinding ( p, n) ,
118118 NodePat ( n) => EntryPat ( p, n) ,
119119 NodeBlock ( n) => EntryBlock ( p, n) ,
120120 NodeStructCtor ( n) => EntryStructCtor ( p, n) ,
@@ -136,7 +136,7 @@ impl<'hir> MapEntry<'hir> {
136136 EntryStmt ( id, _) => id,
137137 EntryTy ( id, _) => id,
138138 EntryTraitRef ( id, _) => id,
139- EntryLocal ( id, _) => id,
139+ EntryBinding ( id, _) => id,
140140 EntryPat ( id, _) => id,
141141 EntryBlock ( id, _) => id,
142142 EntryStructCtor ( id, _) => id,
@@ -161,7 +161,7 @@ impl<'hir> MapEntry<'hir> {
161161 EntryStmt ( _, n) => NodeStmt ( n) ,
162162 EntryTy ( _, n) => NodeTy ( n) ,
163163 EntryTraitRef ( _, n) => NodeTraitRef ( n) ,
164- EntryLocal ( _, n) => NodeLocal ( n) ,
164+ EntryBinding ( _, n) => NodeBinding ( n) ,
165165 EntryPat ( _, n) => NodePat ( n) ,
166166 EntryBlock ( _, n) => NodeBlock ( n) ,
167167 EntryStructCtor ( _, n) => NodeStructCtor ( n) ,
@@ -319,7 +319,7 @@ impl<'hir> Map<'hir> {
319319 EntryStmt ( p, _) |
320320 EntryTy ( p, _) |
321321 EntryTraitRef ( p, _) |
322- EntryLocal ( p, _) |
322+ EntryBinding ( p, _) |
323323 EntryPat ( p, _) |
324324 EntryBlock ( p, _) |
325325 EntryStructCtor ( p, _) |
@@ -589,7 +589,7 @@ impl<'hir> Map<'hir> {
589589 /// immediate parent is an item or a closure.
590590 pub fn is_argument ( & self , id : NodeId ) -> bool {
591591 match self . find ( id) {
592- Some ( NodeLocal ( _) ) => ( ) ,
592+ Some ( NodeBinding ( _) ) => ( ) ,
593593 _ => return false ,
594594 }
595595 match self . find ( self . get_parent_node ( id) ) {
@@ -856,7 +856,7 @@ impl<'hir> Map<'hir> {
856856 NodeField ( f) => f. name ,
857857 NodeLifetime ( lt) => lt. name ,
858858 NodeTyParam ( tp) => tp. name ,
859- NodeLocal ( & Pat { node : PatKind :: Binding ( _, _, l, _) , .. } ) => l. node ,
859+ NodeBinding ( & Pat { node : PatKind :: Binding ( _, _, l, _) , .. } ) => l. node ,
860860 NodeStructCtor ( _) => self . name ( self . get_parent ( id) ) ,
861861 _ => bug ! ( "no name for {}" , self . node_to_string( id) )
862862 }
@@ -915,7 +915,7 @@ impl<'hir> Map<'hir> {
915915 Some ( EntryStmt ( _, stmt) ) => stmt. span ,
916916 Some ( EntryTy ( _, ty) ) => ty. span ,
917917 Some ( EntryTraitRef ( _, tr) ) => tr. path . span ,
918- Some ( EntryLocal ( _, pat) ) => pat. span ,
918+ Some ( EntryBinding ( _, pat) ) => pat. span ,
919919 Some ( EntryPat ( _, pat) ) => pat. span ,
920920 Some ( EntryBlock ( _, block) ) => block. span ,
921921 Some ( EntryStructCtor ( _, _) ) => self . expect_item ( self . get_parent ( id) ) . span ,
@@ -1112,7 +1112,7 @@ impl<'a> print::State<'a> {
11121112 NodeStmt ( a) => self . print_stmt ( & a) ,
11131113 NodeTy ( a) => self . print_type ( & a) ,
11141114 NodeTraitRef ( a) => self . print_trait_ref ( & a) ,
1115- NodeLocal ( a) |
1115+ NodeBinding ( a) |
11161116 NodePat ( a) => self . print_pat ( & a) ,
11171117 NodeBlock ( a) => {
11181118 use syntax:: print:: pprust:: PrintState ;
@@ -1223,7 +1223,7 @@ fn node_id_to_string(map: &Map, id: NodeId, include_id: bool) -> String {
12231223 Some ( NodeTraitRef ( _) ) => {
12241224 format ! ( "trait_ref {}{}" , map. node_to_pretty_string( id) , id_str)
12251225 }
1226- Some ( NodeLocal ( _) ) => {
1226+ Some ( NodeBinding ( _) ) => {
12271227 format ! ( "local {}{}" , map. node_to_pretty_string( id) , id_str)
12281228 }
12291229 Some ( NodePat ( _) ) => {
0 commit comments