@@ -6,9 +6,8 @@ use rustc_ast_ir::Mutability;
6
6
#[ cfg( feature = "nightly" ) ]
7
7
use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
8
8
#[ cfg( feature = "nightly" ) ]
9
- use rustc_data_structures:: unify:: { NoError , UnifyKey , UnifyValue } ;
10
- #[ cfg( feature = "nightly" ) ]
11
9
use rustc_macros:: { Decodable_NoContext , Encodable_NoContext , HashStable_NoContext } ;
10
+ use rustc_type_ir:: data_structures:: { NoError , UnifyKey , UnifyValue } ;
12
11
use rustc_type_ir_macros:: { Lift_Generic , TypeFoldable_Generic , TypeVisitable_Generic } ;
13
12
14
13
use self :: TyKind :: * ;
@@ -796,7 +795,6 @@ pub enum InferTy {
796
795
797
796
/// Raw `TyVid` are used as the unification key for `sub_relations`;
798
797
/// they carry no values.
799
- #[ cfg( feature = "nightly" ) ]
800
798
impl UnifyKey for TyVid {
801
799
type Value = ( ) ;
802
800
#[ inline]
@@ -812,7 +810,6 @@ impl UnifyKey for TyVid {
812
810
}
813
811
}
814
812
815
- #[ cfg( feature = "nightly" ) ]
816
813
impl UnifyValue for IntVarValue {
817
814
type Error = NoError ;
818
815
@@ -832,7 +829,6 @@ impl UnifyValue for IntVarValue {
832
829
}
833
830
}
834
831
835
- #[ cfg( feature = "nightly" ) ]
836
832
impl UnifyKey for IntVid {
837
833
type Value = IntVarValue ;
838
834
#[ inline] // make this function eligible for inlining - it is quite hot.
@@ -848,7 +844,6 @@ impl UnifyKey for IntVid {
848
844
}
849
845
}
850
846
851
- #[ cfg( feature = "nightly" ) ]
852
847
impl UnifyValue for FloatVarValue {
853
848
type Error = NoError ;
854
849
@@ -866,7 +861,6 @@ impl UnifyValue for FloatVarValue {
866
861
}
867
862
}
868
863
869
- #[ cfg( feature = "nightly" ) ]
870
864
impl UnifyKey for FloatVid {
871
865
type Value = FloatVarValue ;
872
866
#[ inline]
0 commit comments