about summary refs log tree commit diff
path: root/src/libcore/sync
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2018-12-16 16:37:18 +0000
committerAmanieu d'Antras <amanieu@gmail.com>2018-12-16 16:37:18 +0000
commitcd70d7df7bfc93c8ef636e91048bcc32c688f718 (patch)
tree39731db7cb68c5bb3d7492aa987dea235aec2e62 /src/libcore/sync
parent748d354af3145d4292ea84142f73bb8114e3db12 (diff)
downloadrust-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.rs2
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.