@@ -63,12 +63,12 @@ use hir;
63
63
64
64
pub use self :: sty:: { Binder , CanonicalVar , DebruijnIndex , INNERMOST } ;
65
65
pub 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 } ;
67
67
pub use self :: sty:: { ClosureSubsts , GeneratorSubsts , UpvarSubsts , TypeAndMut } ;
68
68
pub use self :: sty:: { TraitRef , TyKind , PolyTraitRef } ;
69
69
pub use self :: sty:: { ExistentialTraitRef , PolyExistentialTraitRef } ;
70
70
pub use self :: sty:: { ExistentialProjection , PolyExistentialProjection , Const } ;
71
- pub use self :: sty:: { BoundRegion , EarlyBoundRegion , FreeRegion , Region } ;
71
+ pub use self :: sty:: { BoundRegion , FreeRegion , Region } ;
72
72
pub use self :: sty:: RegionKind ;
73
73
pub use self :: sty:: { TyVid , IntVid , FloatVid , RegionVid } ;
74
74
pub use self :: sty:: BoundRegion :: * ;
@@ -819,7 +819,7 @@ pub enum IntVarValue {
819
819
#[ derive( Clone , Copy , PartialEq , Eq ) ]
820
820
pub struct FloatVarValue ( pub ast:: FloatTy ) ;
821
821
822
- impl ty:: EarlyBoundRegion {
822
+ impl ty:: GenericParam {
823
823
pub fn to_bound_region ( & self ) -> ty:: BoundRegion {
824
824
ty:: BoundRegion :: BrNamed ( self . def_id )
825
825
}
@@ -856,10 +856,10 @@ pub struct GenericParamDef {
856
856
}
857
857
858
858
impl GenericParamDef {
859
- pub fn to_early_bound_region_data ( & self ) -> ty:: EarlyBoundRegion {
859
+ pub fn to_early_bound_region_data ( & self ) -> ty:: GenericParam {
860
860
match self . kind {
861
861
GenericParamDefKind :: Lifetime => {
862
- ty:: EarlyBoundRegion {
862
+ ty:: GenericParam {
863
863
def_id : self . def_id ,
864
864
index : self . index ,
865
865
}
@@ -2657,7 +2657,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
2657
2657
if let Some ( trait_ref) = predicate. to_opt_poly_trait_ref ( ) {
2658
2658
// Ignore bounds other than those on this parameter.
2659
2659
match trait_ref. self_ty ( ) . sty {
2660
- ty:: TyParam ( p) if p. def_id == id => { }
2660
+ ty:: Param ( p) if p. def_id == id => { }
2661
2661
_ => continue ,
2662
2662
}
2663
2663
0 commit comments