Skip to content

Commit

Permalink
Further reduce the likelyhood of hash collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jun 21, 2019
1 parent 0102942 commit d46a373
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc/ich/impls_ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ impl<'a> HashStable<StableHashingContext<'a>> for mir::interpret::Allocation {
extra: _,
} = self;
bytes.hash_stable(hcx, hasher);
relocations.len().hash_stable(hcx, hasher);
for reloc in relocations.iter() {
reloc.hash_stable(hcx, hasher);
}
Expand Down

0 comments on commit d46a373

Please sign in to comment.