Skip to content

Commit e14df76

Browse files
Fix incomplete ICH implementation for ty::subst::UnpackedKind.
1 parent aafe7d8 commit e14df76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc/ich/impls_ty.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ for ty::subst::UnpackedKind<'gcx> {
6767
fn hash_stable<W: StableHasherResult>(&self,
6868
hcx: &mut StableHashingContext<'a>,
6969
hasher: &mut StableHasher<W>) {
70+
mem::discriminant(self).hash_stable(hcx, hasher);
7071
match self {
7172
ty::subst::UnpackedKind::Lifetime(lt) => lt.hash_stable(hcx, hasher),
7273
ty::subst::UnpackedKind::Type(ty) => ty.hash_stable(hcx, hasher),

0 commit comments

Comments
 (0)