about summary refs log tree commit diff
path: root/src/libcore/sync
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2018-12-19 11:47:11 +0100
committerGitHub <noreply@github.com>2018-12-19 11:47:11 +0100
commitb08a52c8d4d9ae81e93577e0787aa95e0bd8752f (patch)
tree670d4c33ce549bc2e2dde0b74c14ddc8c618abd5 /src/libcore/sync
parent29aa4665088e498280b058f6b8c732edc198cd15 (diff)
parentcd70d7df7bfc93c8ef636e91048bcc32c688f718 (diff)
downloadrust-b08a52c8d4d9ae81e93577e0787aa95e0bd8752f.tar.gz
rust-b08a52c8d4d9ae81e93577e0787aa95e0bd8752f.zip
Rollup merge of #56881 - Amanieu:ordering_eq, r=alexcrichton
Implement Eq, PartialEq and Hash for atomic::Ordering

r? @alexcrichton
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 d2683e31eef..70d940e2b55 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.