Skip to content

Commit cab94d2

Browse files
committed
fixup! Improve `Allocation::hash
1 parent 5853c28 commit cab94d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/mir/interpret/allocation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl hash::Hash for Allocation {
115115
init_mask,
116116
align,
117117
mutability,
118-
extra: _, // don't bother hashing ()
118+
extra: (), // don't bother hashing ()
119119
} = self;
120120

121121
// Partially hash the `bytes` buffer when it is large. To limit collisions with common

0 commit comments

Comments
 (0)