diff --git a/src/librustc/ich/impls_ty.rs b/src/librustc/ich/impls_ty.rs index 9b144b1ba3d2a..b2ad7e923b068 100644 --- a/src/librustc/ich/impls_ty.rs +++ b/src/librustc/ich/impls_ty.rs @@ -175,13 +175,17 @@ impl<'a> HashStable> for mir::interpret::Allocation { hcx: &mut StableHashingContext<'a>, hasher: &mut StableHasher, ) { - self.bytes.hash_stable(hcx, hasher); - for reloc in self.relocations.iter() { + let mir::interpret::Allocation { + bytes, relocations, undef_mask, align, mutability, + extra: _, + } = self; + bytes.hash_stable(hcx, hasher); + for reloc in relocations.iter() { reloc.hash_stable(hcx, hasher); } - self.undef_mask.hash_stable(hcx, hasher); - self.align.hash_stable(hcx, hasher); - self.mutability.hash_stable(hcx, hasher); + undef_mask.hash_stable(hcx, hasher); + align.hash_stable(hcx, hasher); + mutability.hash_stable(hcx, hasher); } }