@@ -443,21 +443,21 @@ pub enum TraitBoundModifier {
443443/// the "special" built-in traits (see middle::lang_items) and
444444/// detects Copy, Send and Sync.
445445#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
446- pub enum ParamBound {
446+ pub enum GenericBound {
447447 Trait ( PolyTraitRef , TraitBoundModifier ) ,
448448 Outlives ( Lifetime ) ,
449449}
450450
451- impl ParamBound {
451+ impl GenericBound {
452452 pub fn span ( & self ) -> Span {
453453 match self {
454- & ParamBound :: Trait ( ref t, ..) => t. span ,
455- & ParamBound :: Outlives ( ref l) => l. span ,
454+ & GenericBound :: Trait ( ref t, ..) => t. span ,
455+ & GenericBound :: Outlives ( ref l) => l. span ,
456456 }
457457 }
458458}
459459
460- pub type ParamBounds = HirVec < ParamBound > ;
460+ pub type GenericBounds = HirVec < GenericBound > ;
461461
462462#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
463463pub enum GenericParamKind {
@@ -479,7 +479,7 @@ pub struct GenericParam {
479479 pub id : NodeId ,
480480 pub name : ParamName ,
481481 pub attrs : HirVec < Attribute > ,
482- pub bounds : ParamBounds ,
482+ pub bounds : GenericBounds ,
483483 pub span : Span ,
484484 pub pure_wrt_drop : bool ,
485485
@@ -588,15 +588,15 @@ pub struct WhereBoundPredicate {
588588 /// The type being bounded
589589 pub bounded_ty : P < Ty > ,
590590 /// Trait and lifetime bounds (`Clone+Send+'static`)
591- pub bounds : ParamBounds ,
591+ pub bounds : GenericBounds ,
592592}
593593
594594/// A lifetime predicate, e.g. `'a: 'b+'c`
595595#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
596596pub struct WhereRegionPredicate {
597597 pub span : Span ,
598598 pub lifetime : Lifetime ,
599- pub bounds : ParamBounds ,
599+ pub bounds : GenericBounds ,
600600}
601601
602602/// An equality predicate (unsupported), e.g. `T=int`
@@ -1555,7 +1555,7 @@ pub enum TraitItemKind {
15551555 Method ( MethodSig , TraitMethod ) ,
15561556 /// An associated type with (possibly empty) bounds and optional concrete
15571557 /// type
1558- Type ( ParamBounds , Option < P < Ty > > ) ,
1558+ Type ( GenericBounds , Option < P < Ty > > ) ,
15591559}
15601560
15611561// The bodies for items are stored "out of line", in a separate
@@ -1640,7 +1640,7 @@ pub struct BareFnTy {
16401640#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
16411641pub struct ExistTy {
16421642 pub generics : Generics ,
1643- pub bounds : ParamBounds ,
1643+ pub bounds : GenericBounds ,
16441644 pub impl_trait_fn : Option < DefId > ,
16451645}
16461646
@@ -2049,9 +2049,9 @@ pub enum Item_ {
20492049 /// A union definition, e.g. `union Foo<A, B> {x: A, y: B}`
20502050 ItemUnion ( VariantData , Generics ) ,
20512051 /// Represents a Trait Declaration
2052- ItemTrait ( IsAuto , Unsafety , Generics , ParamBounds , HirVec < TraitItemRef > ) ,
2052+ ItemTrait ( IsAuto , Unsafety , Generics , GenericBounds , HirVec < TraitItemRef > ) ,
20532053 /// Represents a Trait Alias Declaration
2054- ItemTraitAlias ( Generics , ParamBounds ) ,
2054+ ItemTraitAlias ( Generics , GenericBounds ) ,
20552055
20562056 /// An implementation, eg `impl<A> Trait for Foo { .. }`
20572057 ItemImpl ( Unsafety ,
0 commit comments