@@ -10,7 +10,7 @@ use rustc_middle::ty::error::TypeError;
10
10
use rustc_middle:: ty:: relate:: { self , Relate , RelateResult , TypeRelation } ;
11
11
use rustc_middle:: ty:: visit:: MaxUniverse ;
12
12
use rustc_middle:: ty:: { self , Ty , TyCtxt } ;
13
- use rustc_middle:: ty:: { AliasRelationDirection , InferConst , Term , TypeVisitable , TypeVisitableExt } ;
13
+ use rustc_middle:: ty:: { InferConst , RelationDirection , Term , TypeVisitable , TypeVisitableExt } ;
14
14
use rustc_span:: Span ;
15
15
16
16
impl < ' tcx > InferCtxt < ' tcx > {
@@ -75,13 +75,13 @@ impl<'tcx> InferCtxt<'tcx> {
75
75
if self . next_trait_solver ( ) {
76
76
let ( lhs, rhs, direction) = match ambient_variance {
77
77
ty:: Variance :: Invariant => {
78
- ( generalized_ty. into ( ) , source_ty. into ( ) , AliasRelationDirection :: Equate )
78
+ ( generalized_ty. into ( ) , source_ty. into ( ) , RelationDirection :: Equate )
79
79
}
80
80
ty:: Variance :: Covariant => {
81
- ( generalized_ty. into ( ) , source_ty. into ( ) , AliasRelationDirection :: Subtype )
81
+ ( generalized_ty. into ( ) , source_ty. into ( ) , RelationDirection :: Subtype )
82
82
}
83
83
ty:: Variance :: Contravariant => {
84
- ( source_ty. into ( ) , generalized_ty. into ( ) , AliasRelationDirection :: Subtype )
84
+ ( source_ty. into ( ) , generalized_ty. into ( ) , RelationDirection :: Subtype )
85
85
}
86
86
ty:: Variance :: Bivariant => unreachable ! ( "bivariant generalization" ) ,
87
87
} ;
0 commit comments