From cd70d7df7bfc93c8ef636e91048bcc32c688f718 Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Sun, 16 Dec 2018 16:37:18 +0000 Subject: Implement Eq, PartialEq and Hash for atomic::Ordering --- src/libcore/sync/atomic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcore/sync') 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 Sync for AtomicPtr {} /// [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. -- cgit 1.4.1-3-g733a5