diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2018-12-16 16:37:18 +0000 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2018-12-16 16:37:18 +0000 |
| commit | cd70d7df7bfc93c8ef636e91048bcc32c688f718 (patch) | |
| tree | 39731db7cb68c5bb3d7492aa987dea235aec2e62 /src/libcore/sync | |
| parent | 748d354af3145d4292ea84142f73bb8114e3db12 (diff) | |
| download | rust-cd70d7df7bfc93c8ef636e91048bcc32c688f718.tar.gz rust-cd70d7df7bfc93c8ef636e91048bcc32c688f718.zip | |
Implement Eq, PartialEq and Hash for atomic::Ordering
Diffstat (limited to 'src/libcore/sync')
| -rw-r--r-- | src/libcore/sync/atomic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs index 060983a702f..def0fda07b6 100644 --- a/src/libcore/sync/atomic.rs +++ b/src/libcore/sync/atomic.rs @@ -188,7 +188,7 @@ unsafe impl<T> Sync for AtomicPtr<T> {} /// [Ordering::Relaxed]: #variant.Relaxed /// [Ordering::SeqCst]: #variant.SeqCst #[stable(feature = "rust1", since = "1.0.0")] -#[derive(Copy, Clone, Debug)] +#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)] #[non_exhaustive] pub enum Ordering { /// No ordering constraints, only atomic operations. |
