@@ -10,7 +10,7 @@ use rustc_middle::ty::error::TypeError;
1010use rustc_middle:: ty:: relate:: { self , Relate , RelateResult , TypeRelation } ;
1111use rustc_middle:: ty:: visit:: MaxUniverse ;
1212use 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 } ;
1414use rustc_span:: Span ;
1515
1616impl < ' tcx > InferCtxt < ' tcx > {
@@ -75,13 +75,13 @@ impl<'tcx> InferCtxt<'tcx> {
7575 if self . next_trait_solver ( ) {
7676 let ( lhs, rhs, direction) = match ambient_variance {
7777 ty:: Variance :: Invariant => {
78- ( generalized_ty. into ( ) , source_ty. into ( ) , AliasRelationDirection :: Equate )
78+ ( generalized_ty. into ( ) , source_ty. into ( ) , RelationDirection :: Equate )
7979 }
8080 ty:: Variance :: Covariant => {
81- ( generalized_ty. into ( ) , source_ty. into ( ) , AliasRelationDirection :: Subtype )
81+ ( generalized_ty. into ( ) , source_ty. into ( ) , RelationDirection :: Subtype )
8282 }
8383 ty:: Variance :: Contravariant => {
84- ( source_ty. into ( ) , generalized_ty. into ( ) , AliasRelationDirection :: Subtype )
84+ ( source_ty. into ( ) , generalized_ty. into ( ) , RelationDirection :: Subtype )
8585 }
8686 ty:: Variance :: Bivariant => unreachable ! ( "bivariant generalization" ) ,
8787 } ;
0 commit comments