From cab94d29ffc4929a181cbfdb744f87deab467cc1 Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Sun, 9 Apr 2023 23:23:33 +0200 Subject: [PATCH] fixup! Improve `Allocation::hash --- compiler/rustc_middle/src/mir/interpret/allocation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_middle/src/mir/interpret/allocation.rs b/compiler/rustc_middle/src/mir/interpret/allocation.rs index 7b18255f57a..1a8e4826447 100644 --- a/compiler/rustc_middle/src/mir/interpret/allocation.rs +++ b/compiler/rustc_middle/src/mir/interpret/allocation.rs @@ -115,7 +115,7 @@ fn hash(&self, state: &mut H) { init_mask, align, mutability, - extra: _, // don't bother hashing () + extra: (), // don't bother hashing () } = self; // Partially hash the `bytes` buffer when it is large. To limit collisions with common