@@ -68,7 +68,7 @@ pub use self::sty::{ExistentialTraitRef, PolyExistentialTraitRef};
68
68
pub use self :: sty:: { ExistentialProjection , PolyExistentialProjection , Const } ;
69
69
pub use self :: sty:: { BoundRegion , EarlyBoundRegion , FreeRegion , Region } ;
70
70
pub use self :: sty:: RegionKind ;
71
- pub use self :: sty:: { TyVid , IntVid , FloatVid , RegionVid } ;
71
+ pub use self :: sty:: { TyVid , IntVid , FloatVid , RegionVid , SkolemizedRegionVid } ;
72
72
pub use self :: sty:: BoundRegion :: * ;
73
73
pub use self :: sty:: InferTy :: * ;
74
74
pub use self :: sty:: RegionKind :: * ;
@@ -1332,7 +1332,7 @@ impl<'tcx> InstantiatedPredicates<'tcx> {
1332
1332
/// type name in a non-zero universe is a skolemized type -- an
1333
1333
/// idealized representative of "types in general" that we use for
1334
1334
/// 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 ) ]
1336
1336
pub struct UniverseIndex ( u32 ) ;
1337
1337
1338
1338
impl UniverseIndex {
@@ -1352,19 +1352,7 @@ impl UniverseIndex {
1352
1352
/// region `'a`, but that region was not nameable from `U` because
1353
1353
/// it was not in scope there.
1354
1354
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 )
1368
1356
}
1369
1357
1370
1358
/// Gets the "depth" of this universe in the universe tree. This
0 commit comments