Skip to content

Commit 5ddc615

Browse files
committed
Add missing types to eq_ty
1 parent ee830ba commit 5ddc615

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utils/hir.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,17 @@ impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> {
218218
fn eq_ty(&self, left: &Ty, right: &Ty) -> bool {
219219
match (&left.node, &right.node) {
220220
(&TyVec(ref lvec), &TyVec(ref rvec)) => self.eq_ty(lvec, rvec),
221+
(&TyFixedLengthVec(ref lt, ref ll), &TyFixedLengthVec(ref rt, ref rl)) => {
222+
self.eq_ty(lt, rt) && self.eq_expr(ll, rl)
223+
}
221224
(&TyPtr(ref lmut), &TyPtr(ref rmut)) => lmut.mutbl == rmut.mutbl && self.eq_ty(&*lmut.ty, &*rmut.ty),
222225
(&TyRptr(_, ref lrmut), &TyRptr(_, ref rrmut)) => {
223226
lrmut.mutbl == rrmut.mutbl && self.eq_ty(&*lrmut.ty, &*rrmut.ty)
224227
}
225228
(&TyPath(ref lq, ref lpath), &TyPath(ref rq, ref rpath)) => {
226229
both(lq, rq, |l, r| self.eq_qself(l, r)) && self.eq_path(lpath, rpath)
227230
}
231+
(&TyTup(ref l), &TyTup(ref r)) => over(l, r, |l, r| self.eq_ty(l, r)),
228232
(&TyInfer, &TyInfer) => true,
229233
_ => false,
230234
}

0 commit comments

Comments
 (0)