Skip to content

Commit

Permalink
Implement Eq, PartialEq and Hash for atomic::Ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Dec 16, 2018
1 parent 748d354 commit cd70d7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/sync/atomic.rs
Expand Up @@ -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.
Expand Down

0 comments on commit cd70d7d

Please sign in to comment.