about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2018-06-21 21:40:14 -0700
committerDylan MacKenzie <ecstaticmorse@gmail.com>2018-07-04 14:36:07 -0700
commit6c0f502fe6bb54b285d66850ca8171e0c98091b0 (patch)
treedf3bb64d941742ead834b5f05954f2ee8a7e2885 /src/rustllvm/RustWrapper.cpp
parentdb025c14eccb435ffb6bc5d4f834b4551589447b (diff)
downloadrust-6c0f502fe6bb54b285d66850ca8171e0c98091b0.tar.gz
rust-6c0f502fe6bb54b285d66850ca8171e0c98091b0.zip
Implement Clone, Eq and Hash for the heap and stack
I use a pattern binding in each custom impl, so that adding fields to
`Memory` or `Frame` will cause a compiler error instead of causing e.g.
`PartialEq` to become invalid. This may be too cute.

This adds several requirements to `Machine::MemoryData`. These can be
removed if we don't want this associated type to be part of the equality
of `Memory`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions