Skip to content

Commit 609b7d2

Browse files
committed
1 parent efe5910 commit 609b7d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mismatch.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ impl<'a, 'tcx> TypeRelation<'tcx> for MismatchRelation<'a, 'tcx> {
118118
fn relate_with_variance<T: Relate<'tcx>>(
119119
&mut self,
120120
_: ty::Variance,
121+
_: ty::VarianceDiagInfo<'tcx>,
121122
a: T,
122123
b: T,
123124
) -> RelateResult<'tcx, T> {
@@ -197,7 +198,7 @@ impl<'a, 'tcx> TypeRelation<'tcx> for MismatchRelation<'a, 'tcx> {
197198
None
198199
}
199200
(&TyKind::RawPtr(a_mt), &TyKind::RawPtr(b_mt)) => {
200-
let _ = self.relate(a_mt, b_mt)?;
201+
let _ = ty::relate::relate_type_and_mut(self, a_mt, b_mt, ty::VarianceDiagMutKind::RawPtr)?;
201202
None
202203
}
203204
(&TyKind::Ref(a_r, a_ty, _), &TyKind::Ref(b_r, b_ty, _)) => {

0 commit comments

Comments
 (0)