diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2015-05-24 10:38:59 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2015-05-24 10:38:59 +0200 |
| commit | bbf8ba7c2351caba1b585346e5709f8eb476f169 (patch) | |
| tree | 86db90d256b1ecd5d413e71c7d658347318dc082 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | 0fc0476e6ae2bcc5cce75d78548cf037b6692a97 (diff) | |
| download | rust-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
