From d46a373b391cb546f5a737fd5009f7733c220531 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Fri, 21 Jun 2019 09:56:02 +0200 Subject: [PATCH] Further reduce the likelyhood of hash collisions --- src/librustc/ich/impls_ty.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc/ich/impls_ty.rs b/src/librustc/ich/impls_ty.rs index b2ad7e923b0..0ddc9211f98 100644 --- a/src/librustc/ich/impls_ty.rs +++ b/src/librustc/ich/impls_ty.rs @@ -180,6 +180,7 @@ fn hash_stable( extra: _, } = self; bytes.hash_stable(hcx, hasher); + relocations.len().hash_stable(hcx, hasher); for reloc in relocations.iter() { reloc.hash_stable(hcx, hasher); } -- 2.44.0