Skip to content

Commit d46a373

Browse files
committed
Further reduce the likelyhood of hash collisions
1 parent 0102942 commit d46a373

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/librustc/ich/impls_ty.rs

+1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ impl<'a> HashStable<StableHashingContext<'a>> for mir::interpret::Allocation {
180180
extra: _,
181181
} = self;
182182
bytes.hash_stable(hcx, hasher);
183+
relocations.len().hash_stable(hcx, hasher);
183184
for reloc in relocations.iter() {
184185
reloc.hash_stable(hcx, hasher);
185186
}

0 commit comments

Comments
 (0)