Implement Eq, PartialEq and Hash for atomic::Ordering

This commit is contained in:
Amanieu d'Antras 2018-12-16 16:37:18 +00:00
parent 748d354af3
commit cd70d7df7b

View File

@ -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.