@@ -29,7 +29,7 @@ pub trait TypeRelation<'tcx>: Sized {
29
29
fn tag ( & self ) -> & ' static str ;
30
30
31
31
/// Returns whether or not structural equality can be used to fast-path this relation
32
- fn fast_equate_combine ( & self ) -> bool ;
32
+ fn fast_equate ( & self ) -> bool ;
33
33
34
34
/// Returns `true` if the value `a` is the "expected" type in the
35
35
/// relation. Just affects error messages.
@@ -143,7 +143,7 @@ pub fn relate_substs<'tcx, R: TypeRelation<'tcx>>(
143
143
a_subst : SubstsRef < ' tcx > ,
144
144
b_subst : SubstsRef < ' tcx > ,
145
145
) -> RelateResult < ' tcx , SubstsRef < ' tcx > > {
146
- if relation. fast_equate_combine ( ) && a_subst == b_subst {
146
+ if relation. fast_equate ( ) && a_subst == b_subst {
147
147
return Ok ( a_subst) ;
148
148
}
149
149
@@ -159,7 +159,7 @@ pub fn relate_substs_with_variances<'tcx, R: TypeRelation<'tcx>>(
159
159
a_subst : SubstsRef < ' tcx > ,
160
160
b_subst : SubstsRef < ' tcx > ,
161
161
) -> RelateResult < ' tcx , SubstsRef < ' tcx > > {
162
- if relation. fast_equate_combine ( ) && a_subst == b_subst {
162
+ if relation. fast_equate ( ) && a_subst == b_subst {
163
163
return Ok ( a_subst) ;
164
164
}
165
165
@@ -365,7 +365,7 @@ impl<'tcx> Relate<'tcx> for GeneratorWitness<'tcx> {
365
365
a : GeneratorWitness < ' tcx > ,
366
366
b : GeneratorWitness < ' tcx > ,
367
367
) -> RelateResult < ' tcx , GeneratorWitness < ' tcx > > {
368
- if relation. fast_equate_combine ( ) && a == b {
368
+ if relation. fast_equate ( ) && a == b {
369
369
return Ok ( a) ;
370
370
}
371
371
@@ -670,7 +670,7 @@ impl<'tcx> Relate<'tcx> for &'tcx ty::List<ty::Binder<'tcx, ty::ExistentialPredi
670
670
a : Self ,
671
671
b : Self ,
672
672
) -> RelateResult < ' tcx , Self > {
673
- if relation. fast_equate_combine ( ) && a == b {
673
+ if relation. fast_equate ( ) && a == b {
674
674
return Ok ( a) ;
675
675
}
676
676
0 commit comments