Skip to content

Commit afb4faa

Browse files
Hash discriminant of LocalValue
1 parent e017f57 commit afb4faa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_mir/interpret/snapshot.rs

+1
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ impl Hash for IgnoreAllocId<'_, LocalState<'tcx>> {
344344
layout: _,
345345
} = self.0;
346346

347+
std::mem::discriminant(value).hash(state);
347348
match value {
348349
LocalValue::Live(op) => op.erase_alloc_id().hash(state),
349350
LocalValue::Dead | LocalValue::Uninitialized => value.hash(state),

0 commit comments

Comments
 (0)