@@ -63,12 +63,12 @@ use hir;
6363
6464pub use self :: sty:: { Binder , CanonicalVar , DebruijnIndex , INNERMOST } ;
6565pub use self :: sty:: { FnSig , GenSig , PolyFnSig , PolyGenSig } ;
66- pub use self :: sty:: { InferTy , ParamTy , ProjectionTy , ExistentialPredicate } ;
66+ pub use self :: sty:: { InferTy , GenericParam , ProjectionTy , ExistentialPredicate } ;
6767pub use self :: sty:: { ClosureSubsts , GeneratorSubsts , UpvarSubsts , TypeAndMut } ;
6868pub use self :: sty:: { TraitRef , TyKind , PolyTraitRef } ;
6969pub use self :: sty:: { ExistentialTraitRef , PolyExistentialTraitRef } ;
7070pub use self :: sty:: { ExistentialProjection , PolyExistentialProjection , Const } ;
71- pub use self :: sty:: { BoundRegion , EarlyBoundRegion , FreeRegion , Region } ;
71+ pub use self :: sty:: { BoundRegion , FreeRegion , Region } ;
7272pub use self :: sty:: RegionKind ;
7373pub use self :: sty:: { TyVid , IntVid , FloatVid , RegionVid } ;
7474pub use self :: sty:: BoundRegion :: * ;
@@ -819,7 +819,7 @@ pub enum IntVarValue {
819819#[ derive( Clone , Copy , PartialEq , Eq ) ]
820820pub struct FloatVarValue ( pub ast:: FloatTy ) ;
821821
822- impl ty:: EarlyBoundRegion {
822+ impl ty:: GenericParam {
823823 pub fn to_bound_region ( & self ) -> ty:: BoundRegion {
824824 ty:: BoundRegion :: BrNamed ( self . def_id )
825825 }
@@ -856,10 +856,10 @@ pub struct GenericParamDef {
856856}
857857
858858impl GenericParamDef {
859- pub fn to_early_bound_region_data ( & self ) -> ty:: EarlyBoundRegion {
859+ pub fn to_early_bound_region_data ( & self ) -> ty:: GenericParam {
860860 match self . kind {
861861 GenericParamDefKind :: Lifetime => {
862- ty:: EarlyBoundRegion {
862+ ty:: GenericParam {
863863 def_id : self . def_id ,
864864 index : self . index ,
865865 }
@@ -2657,7 +2657,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
26572657 if let Some ( trait_ref) = predicate. to_opt_poly_trait_ref ( ) {
26582658 // Ignore bounds other than those on this parameter.
26592659 match trait_ref. self_ty ( ) . sty {
2660- ty:: TyParam ( p) if p. def_id == id => { }
2660+ ty:: Param ( p) if p. def_id == id => { }
26612661 _ => continue ,
26622662 }
26632663
0 commit comments