@@ -22,7 +22,6 @@ use rustc_middle::traits::solve::Goal;
2222pub use rustc_middle:: ty:: relate:: combine:: * ;
2323use rustc_middle:: ty:: { self , TyCtxt , Upcast } ;
2424
25- use super :: StructurallyRelateAliases ;
2625use super :: glb:: Glb ;
2726use super :: lub:: Lub ;
2827use super :: type_relating:: TypeRelating ;
@@ -68,19 +67,16 @@ impl<'infcx, 'tcx> CombineFields<'infcx, 'tcx> {
6867 self . infcx . tcx
6968 }
7069
71- pub fn equate < ' a > (
72- & ' a mut self ,
73- structurally_relate_aliases : StructurallyRelateAliases ,
74- ) -> TypeRelating < ' a , ' infcx , ' tcx > {
75- TypeRelating :: new ( self , structurally_relate_aliases, ty:: Invariant )
70+ pub fn equate < ' a > ( & ' a mut self ) -> TypeRelating < ' a , ' infcx , ' tcx > {
71+ TypeRelating :: new ( self , ty:: Invariant )
7672 }
7773
7874 pub fn sub < ' a > ( & ' a mut self ) -> TypeRelating < ' a , ' infcx , ' tcx > {
79- TypeRelating :: new ( self , StructurallyRelateAliases :: No , ty:: Covariant )
75+ TypeRelating :: new ( self , ty:: Covariant )
8076 }
8177
8278 pub fn sup < ' a > ( & ' a mut self ) -> TypeRelating < ' a , ' infcx , ' tcx > {
83- TypeRelating :: new ( self , StructurallyRelateAliases :: No , ty:: Contravariant )
79+ TypeRelating :: new ( self , ty:: Contravariant )
8480 }
8581
8682 pub fn lub < ' a > ( & ' a mut self ) -> Lub < ' a , ' infcx , ' tcx > {
0 commit comments