Thread pattern types through the HIR
This commit is contained in:
parent
c340e67dec
commit
c4efc25bfa
15 changed files with 48 additions and 5 deletions
|
|
@ -821,6 +821,7 @@ impl TyCoercionStability {
|
|||
| TyKind::Array(..)
|
||||
| TyKind::Ptr(_)
|
||||
| TyKind::BareFn(_)
|
||||
| TyKind::Pat(..)
|
||||
| TyKind::Never
|
||||
| TyKind::Tup(_)
|
||||
| TyKind::Path(_) => Self::Deref,
|
||||
|
|
|
|||
|
|
@ -1068,6 +1068,10 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
|
|||
self.hash_ty(ty);
|
||||
self.hash_array_length(len);
|
||||
},
|
||||
TyKind::Pat(ty, pat) => {
|
||||
self.hash_ty(ty);
|
||||
self.hash_pat(pat);
|
||||
},
|
||||
TyKind::Ptr(ref mut_ty) => {
|
||||
self.hash_ty(mut_ty.ty);
|
||||
mut_ty.mutbl.hash(&mut self.s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue