Thread pattern types through the HIR
This commit is contained in:
parent
71e02a01a1
commit
89b48a2e22
@ -821,6 +821,7 @@ fn for_hir_ty<'tcx>(ty: &'tcx hir::Ty<'tcx>) -> Self {
|
|||||||
| TyKind::Array(..)
|
| TyKind::Array(..)
|
||||||
| TyKind::Ptr(_)
|
| TyKind::Ptr(_)
|
||||||
| TyKind::BareFn(_)
|
| TyKind::BareFn(_)
|
||||||
|
| TyKind::Pat(..)
|
||||||
| TyKind::Never
|
| TyKind::Never
|
||||||
| TyKind::Tup(_)
|
| TyKind::Tup(_)
|
||||||
| TyKind::Path(_) => Self::Deref,
|
| TyKind::Path(_) => Self::Deref,
|
||||||
|
@ -1068,6 +1068,10 @@ pub fn hash_tykind(&mut self, ty: &TyKind<'_>) {
|
|||||||
self.hash_ty(ty);
|
self.hash_ty(ty);
|
||||||
self.hash_array_length(len);
|
self.hash_array_length(len);
|
||||||
},
|
},
|
||||||
|
TyKind::Pat(ty, pat) => {
|
||||||
|
self.hash_ty(ty);
|
||||||
|
self.hash_pat(pat);
|
||||||
|
},
|
||||||
TyKind::Ptr(ref mut_ty) => {
|
TyKind::Ptr(ref mut_ty) => {
|
||||||
self.hash_ty(mut_ty.ty);
|
self.hash_ty(mut_ty.ty);
|
||||||
mut_ty.mutbl.hash(&mut self.s);
|
mut_ty.mutbl.hash(&mut self.s);
|
||||||
|
Loading…
Reference in New Issue
Block a user