about summary refs log tree commit diff
path: root/src/librustc/mir
diff options
context:
space:
mode:
authorWesley Wiser <wwiser@gmail.com>2019-10-27 14:58:00 -0400
committerWesley Wiser <wwiser@gmail.com>2019-11-22 20:42:25 -0500
commit8c406dc29cd49402609700469a313735622ec80c (patch)
tree4da987bb283587757b6f0e69fe52f5d17c170d84 /src/librustc/mir
parentf1b882b55805c342e46ee4ca3beeef1d1fa2044b (diff)
downloadrust-8c406dc29cd49402609700469a313735622ec80c.tar.gz
rust-8c406dc29cd49402609700469a313735622ec80c.zip
Allow miri allocation interning to work im generic Machines
This is necessary so that the `ComstPropMachine` can intern allocations.
Diffstat (limited to 'src/librustc/mir')
-rw-r--r--src/librustc/mir/interpret/value.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/mir/interpret/value.rs b/src/librustc/mir/interpret/value.rs
index 52c72de7579..f82af62c5f3 100644
--- a/src/librustc/mir/interpret/value.rs
+++ b/src/librustc/mir/interpret/value.rs
@@ -458,7 +458,7 @@ impl<Tag> From<Pointer<Tag>> for Scalar<Tag> {
     }
 }
 
-#[derive(Clone, Copy, Eq, PartialEq, RustcEncodable, RustcDecodable, HashStable)]
+#[derive(Clone, Copy, Eq, PartialEq, RustcEncodable, RustcDecodable, HashStable, Hash)]
 pub enum ScalarMaybeUndef<Tag = (), Id = AllocId> {
     Scalar(Scalar<Tag, Id>),
     Undef,