@@ -22,7 +22,6 @@ use rustc_middle::traits::solve::Goal;
22
22
pub use rustc_middle:: ty:: relate:: combine:: * ;
23
23
use rustc_middle:: ty:: { self , TyCtxt , Upcast } ;
24
24
25
- use super :: StructurallyRelateAliases ;
26
25
use super :: glb:: Glb ;
27
26
use super :: lub:: Lub ;
28
27
use super :: type_relating:: TypeRelating ;
@@ -68,19 +67,16 @@ impl<'infcx, 'tcx> CombineFields<'infcx, 'tcx> {
68
67
self . infcx . tcx
69
68
}
70
69
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 )
76
72
}
77
73
78
74
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 )
80
76
}
81
77
82
78
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 )
84
80
}
85
81
86
82
pub fn lub < ' a > ( & ' a mut self ) -> Lub < ' a , ' infcx , ' tcx > {
0 commit comments