about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2015-05-24 10:38:59 +0200
committerSimon Sapin <simon.sapin@exyr.org>2015-05-24 10:38:59 +0200
commitbbf8ba7c2351caba1b585346e5709f8eb476f169 (patch)
tree86db90d256b1ecd5d413e71c7d658347318dc082 /src/rustllvm/ExecutionEngineWrapper.cpp
parent0fc0476e6ae2bcc5cce75d78548cf037b6692a97 (diff)
downloadrust-bbf8ba7c2351caba1b585346e5709f8eb476f169.tar.gz
rust-bbf8ba7c2351caba1b585346e5709f8eb476f169.zip
Implement Eq for Cell and RefCell.
`core::cell::Cell<T>` and `core::cell::RefCell<T>` currently implement
`PartialEq` when `T` does, and just defer to comparing `T` values.
There is no reason the same shouldn’t apply to `Eq`.

This enables `#[derive(Eq, PartialEq)]` on e.g.
structs that have a `RefCell` field.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions