Skip to content

Commit

Permalink
Rollup merge of rust-lang#56881 - Amanieu:ordering_eq, r=alexcrichton
Browse files Browse the repository at this point in the history
Implement Eq, PartialEq and Hash for atomic::Ordering

r? @alexcrichton
  • Loading branch information
pietroalbini committed Dec 19, 2018
2 parents 29aa466 + cd70d7d commit b08a52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/sync/atomic.rs
Original file line number Diff line number Diff line change
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 b08a52c

Please sign in to comment.