@@ -6,9 +6,8 @@ use rustc_ast_ir::Mutability;
66#[ cfg( feature = "nightly" ) ]
77use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
88#[ cfg( feature = "nightly" ) ]
9- use rustc_data_structures:: unify:: { NoError , UnifyKey , UnifyValue } ;
10- #[ cfg( feature = "nightly" ) ]
119use rustc_macros:: { Decodable_NoContext , Encodable_NoContext , HashStable_NoContext } ;
10+ use rustc_type_ir:: data_structures:: { NoError , UnifyKey , UnifyValue } ;
1211use rustc_type_ir_macros:: { Lift_Generic , TypeFoldable_Generic , TypeVisitable_Generic } ;
1312
1413use self :: TyKind :: * ;
@@ -796,7 +795,6 @@ pub enum InferTy {
796795
797796/// Raw `TyVid` are used as the unification key for `sub_relations`;
798797/// they carry no values.
799- #[ cfg( feature = "nightly" ) ]
800798impl UnifyKey for TyVid {
801799 type Value = ( ) ;
802800 #[ inline]
@@ -812,7 +810,6 @@ impl UnifyKey for TyVid {
812810 }
813811}
814812
815- #[ cfg( feature = "nightly" ) ]
816813impl UnifyValue for IntVarValue {
817814 type Error = NoError ;
818815
@@ -832,7 +829,6 @@ impl UnifyValue for IntVarValue {
832829 }
833830}
834831
835- #[ cfg( feature = "nightly" ) ]
836832impl UnifyKey for IntVid {
837833 type Value = IntVarValue ;
838834 #[ inline] // make this function eligible for inlining - it is quite hot.
@@ -848,7 +844,6 @@ impl UnifyKey for IntVid {
848844 }
849845}
850846
851- #[ cfg( feature = "nightly" ) ]
852847impl UnifyValue for FloatVarValue {
853848 type Error = NoError ;
854849
@@ -866,7 +861,6 @@ impl UnifyValue for FloatVarValue {
866861 }
867862}
868863
869- #[ cfg( feature = "nightly" ) ]
870864impl UnifyKey for FloatVid {
871865 type Value = FloatVarValue ;
872866 #[ inline]
0 commit comments