about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-04-09 23:23:33 +0200
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-04-09 23:23:33 +0200
commitcab94d29ffc4929a181cbfdb744f87deab467cc1 (patch)
tree1a769ca342d999c9db2dadfc665275941e7dae2b
parent5853c28a7f5c497f25d679d32522a110ae6cac28 (diff)
downloadrust-cab94d29ffc4929a181cbfdb744f87deab467cc1.tar.gz
rust-cab94d29ffc4929a181cbfdb744f87deab467cc1.zip
fixup! Improve `Allocation::hash
-rw-r--r--compiler/rustc_middle/src/mir/interpret/allocation.rs2
1 files changed, 1 insertions, 1 deletions
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 @@ impl hash::Hash for Allocation {
             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