@@ -178,13 +178,12 @@ pub const DUMMY_ITEM_LOCAL_ID: ItemLocalId = ItemLocalId(!0);
178
178
179
179
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Copy ) ]
180
180
pub struct Label {
181
- pub name : Name ,
182
- pub span : Span ,
181
+ pub ident : Ident ,
183
182
}
184
183
185
184
impl fmt:: Debug for Label {
186
185
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
187
- write ! ( f, "label({:?})" , self . name )
186
+ write ! ( f, "label({:?})" , self . ident )
188
187
}
189
188
}
190
189
@@ -457,11 +456,10 @@ pub type TyParamBounds = HirVec<TyParamBound>;
457
456
458
457
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
459
458
pub struct TyParam {
460
- pub name : Name ,
459
+ pub ident : Ident ,
461
460
pub id : NodeId ,
462
461
pub bounds : TyParamBounds ,
463
462
pub default : Option < P < Ty > > ,
464
- pub span : Span ,
465
463
pub pure_wrt_drop : bool ,
466
464
pub synthetic : Option < SyntheticTyParamKind > ,
467
465
pub attrs : HirVec < Attribute > ,
@@ -923,7 +921,7 @@ pub enum PatKind {
923
921
/// The `NodeId` is the canonical ID for the variable being bound,
924
922
/// e.g. in `Ok(x) | Err(x)`, both `x` use the same canonical ID,
925
923
/// which is the pattern ID of the first `x`.
926
- Binding ( BindingAnnotation , NodeId , Spanned < Name > , Option < P < Pat > > ) ,
924
+ Binding ( BindingAnnotation , NodeId , Ident , Option < P < Pat > > ) ,
927
925
928
926
/// A struct or struct variant pattern, e.g. `Variant {x, y, ..}`.
929
927
/// The `bool` is `true` in the presence of a `..`.
@@ -1603,7 +1601,7 @@ pub struct TraitItem {
1603
1601
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
1604
1602
pub enum TraitMethod {
1605
1603
/// No default body in the trait, just a signature.
1606
- Required ( HirVec < Spanned < Name > > ) ,
1604
+ Required ( HirVec < Ident > ) ,
1607
1605
1608
1606
/// Both signature and body are provided in the trait.
1609
1607
Provided ( BodyId ) ,
@@ -1698,7 +1696,7 @@ pub struct BareFnTy {
1698
1696
pub abi : Abi ,
1699
1697
pub generic_params : HirVec < GenericParam > ,
1700
1698
pub decl : P < FnDecl > ,
1701
- pub arg_names : HirVec < Spanned < Name > > ,
1699
+ pub arg_names : HirVec < Ident > ,
1702
1700
}
1703
1701
1704
1702
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
@@ -2220,7 +2218,7 @@ pub struct ForeignItem {
2220
2218
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
2221
2219
pub enum ForeignItem_ {
2222
2220
/// A foreign function
2223
- ForeignItemFn ( P < FnDecl > , HirVec < Spanned < Name > > , Generics ) ,
2221
+ ForeignItemFn ( P < FnDecl > , HirVec < Ident > , Generics ) ,
2224
2222
/// A foreign static item (`static ext: u8`), with optional mutability
2225
2223
/// (the boolean is true when mutable)
2226
2224
ForeignItemStatic ( P < Ty > , bool ) ,
0 commit comments