about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2018-03-01 16:48:03 +0100
committerMichael Woerister <michaelwoerister@posteo>2018-04-06 12:14:08 +0200
commitd3b5451991fb1bc09a809547374883340117236b (patch)
tree6183c2c13daa1a9aadf2651b6a5767bb721a0f0d
parentdb4235c4fd20b18fcda7f331913cfe30a13f216c (diff)
downloadrust-d3b5451991fb1bc09a809547374883340117236b.tar.gz
rust-d3b5451991fb1bc09a809547374883340117236b.zip
Fix incomplete ICH implementation for ty::subst::UnpackedKind.
-rw-r--r--src/librustc/ich/impls_ty.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc/ich/impls_ty.rs b/src/librustc/ich/impls_ty.rs
index da1a2592f14..f37f2aa9e2d 100644
--- a/src/librustc/ich/impls_ty.rs
+++ b/src/librustc/ich/impls_ty.rs
@@ -67,6 +67,7 @@ for ty::subst::UnpackedKind<'gcx> {
     fn hash_stable<W: StableHasherResult>(&self,
                                           hcx: &mut StableHashingContext<'a>,
                                           hasher: &mut StableHasher<W>) {
+        mem::discriminant(self).hash_stable(hcx, hasher);
         match self {
             ty::subst::UnpackedKind::Lifetime(lt) => lt.hash_stable(hcx, hasher),
             ty::subst::UnpackedKind::Type(ty) => ty.hash_stable(hcx, hasher),