Skip to content

Commit ad132c0

Browse files
committed
Correct TypeVariants' HashStable impl
1 parent 598350c commit ad132c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/librustc/ich/impls_ty.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,9 +834,13 @@ for ty::TypeVariants<'gcx>
834834
TyStr |
835835
TyError |
836836
TyNever |
837-
TyUnusedParam | ty::TyLayoutOnlyParam(_, _) => {
837+
TyUnusedParam => {
838838
// Nothing more to hash.
839839
}
840+
TyLayoutOnlyParam(size, align) => {
841+
size.hash_stable(hcx, hasher);
842+
align.hash_stable(hcx, hasher);
843+
}
840844
TyInt(int_ty) => {
841845
int_ty.hash_stable(hcx, hasher);
842846
}

0 commit comments

Comments
 (0)