@@ -68,7 +68,7 @@ pub use self::sty::{ExistentialTraitRef, PolyExistentialTraitRef};
6868pub use self :: sty:: { ExistentialProjection , PolyExistentialProjection , Const } ;
6969pub use self :: sty:: { BoundRegion , EarlyBoundRegion , FreeRegion , Region } ;
7070pub use self :: sty:: RegionKind ;
71- pub use self :: sty:: { TyVid , IntVid , FloatVid , RegionVid } ;
71+ pub use self :: sty:: { TyVid , IntVid , FloatVid , RegionVid , SkolemizedRegionVid } ;
7272pub use self :: sty:: BoundRegion :: * ;
7373pub use self :: sty:: InferTy :: * ;
7474pub use self :: sty:: RegionKind :: * ;
@@ -1332,7 +1332,7 @@ impl<'tcx> InstantiatedPredicates<'tcx> {
13321332/// type name in a non-zero universe is a skolemized type -- an
13331333/// idealized representative of "types in general" that we use for
13341334/// checking generic functions.
1335- #[ derive( Copy , Clone , Debug , PartialEq , Eq , PartialOrd , Ord , Hash , RustcEncodable , RustcDecodable ) ]
1335+ #[ derive( Copy , Clone , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
13361336pub struct UniverseIndex ( u32 ) ;
13371337
13381338impl UniverseIndex {
@@ -1352,19 +1352,7 @@ impl UniverseIndex {
13521352 /// region `'a`, but that region was not nameable from `U` because
13531353 /// it was not in scope there.
13541354 pub fn subuniverse ( self ) -> UniverseIndex {
1355- UniverseIndex ( self . 0 . checked_add ( 1 ) . unwrap ( ) )
1356- }
1357-
1358- pub fn from ( v : u32 ) -> UniverseIndex {
1359- UniverseIndex ( v)
1360- }
1361-
1362- pub fn as_u32 ( & self ) -> u32 {
1363- self . 0
1364- }
1365-
1366- pub fn as_usize ( & self ) -> usize {
1367- self . 0 as usize
1355+ UniverseIndex ( self . 0 + 1 )
13681356 }
13691357
13701358 /// Gets the "depth" of this universe in the universe tree. This
0 commit comments