@@ -161,8 +161,8 @@ pub fn bound_region_to_str(cx: ctxt,
161
161
}
162
162
163
163
match br {
164
- BrNamed ( _, ident ) => format ! ( "{}'{}{}" , prefix,
165
- token:: get_name( ident ) , space_str) ,
164
+ BrNamed ( _, name ) => format ! ( "{}'{}{}" , prefix,
165
+ token:: get_name( name ) , space_str) ,
166
166
BrAnon ( _) => prefix. to_str ( ) ,
167
167
BrFresh ( _) => prefix. to_str ( ) ,
168
168
}
@@ -224,7 +224,7 @@ pub fn region_to_str(cx: ctxt, prefix: &str, space: bool, region: Region) -> ~st
224
224
// `explain_region()` or `note_and_explain_region()`.
225
225
match region {
226
226
ty:: ReScope ( _) => prefix. to_str ( ) ,
227
- ty:: ReEarlyBound ( _, _, ident ) => token:: get_name ( ident ) . get ( ) . to_str ( ) ,
227
+ ty:: ReEarlyBound ( _, _, name ) => token:: get_name ( name ) . get ( ) . to_str ( ) ,
228
228
ty:: ReLateBound ( _, br) => bound_region_to_str ( cx, prefix, space, br) ,
229
229
ty:: ReFree ( ref fr) => bound_region_to_str ( cx, prefix, space, fr. bound_region ) ,
230
230
ty:: ReInfer ( ReSkolemized ( _, br) ) => {
@@ -720,9 +720,9 @@ impl Repr for ty::BoundRegion {
720
720
fn repr ( & self , tcx : ctxt ) -> ~str {
721
721
match * self {
722
722
ty:: BrAnon ( id) => format ! ( "BrAnon({})" , id) ,
723
- ty:: BrNamed ( id, ident ) => format ! ( "BrNamed({}, {})" ,
724
- id. repr( tcx) ,
725
- token:: get_name( ident ) ) ,
723
+ ty:: BrNamed ( id, name ) => format ! ( "BrNamed({}, {})" ,
724
+ id. repr( tcx) ,
725
+ token:: get_name( name ) ) ,
726
726
ty:: BrFresh ( id) => format ! ( "BrFresh({})" , id) ,
727
727
}
728
728
}
@@ -731,9 +731,9 @@ impl Repr for ty::BoundRegion {
731
731
impl Repr for ty:: Region {
732
732
fn repr ( & self , tcx : ctxt ) -> ~str {
733
733
match * self {
734
- ty:: ReEarlyBound ( id, index, ident ) => {
734
+ ty:: ReEarlyBound ( id, index, name ) => {
735
735
format ! ( "ReEarlyBound({}, {}, {})" ,
736
- id, index, token:: get_name( ident ) )
736
+ id, index, token:: get_name( name ) )
737
737
}
738
738
739
739
ty:: ReLateBound ( binder_id, ref bound_region) => {
0 commit comments