We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee830ba commit 5ddc615Copy full SHA for 5ddc615
src/utils/hir.rs
@@ -218,13 +218,17 @@ impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> {
218
fn eq_ty(&self, left: &Ty, right: &Ty) -> bool {
219
match (&left.node, &right.node) {
220
(&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
+ }
224
(&TyPtr(ref lmut), &TyPtr(ref rmut)) => lmut.mutbl == rmut.mutbl && self.eq_ty(&*lmut.ty, &*rmut.ty),
225
(&TyRptr(_, ref lrmut), &TyRptr(_, ref rrmut)) => {
226
lrmut.mutbl == rrmut.mutbl && self.eq_ty(&*lrmut.ty, &*rrmut.ty)
227
}
228
(&TyPath(ref lq, ref lpath), &TyPath(ref rq, ref rpath)) => {
229
both(lq, rq, |l, r| self.eq_qself(l, r)) && self.eq_path(lpath, rpath)
230
231
+ (&TyTup(ref l), &TyTup(ref r)) => over(l, r, |l, r| self.eq_ty(l, r)),
232
(&TyInfer, &TyInfer) => true,
233
_ => false,
234
0 commit comments