Skip to content

Commit

Permalink
fixup! Improve `Allocation::hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Noratrieb committed Apr 9, 2023
1 parent 5853c28 commit cab94d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/mir/interpret/allocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cab94d2

Please sign in to comment.