Skip to content

Commit b08a52c

Browse files
authored
Rollup merge of rust-lang#56881 - Amanieu:ordering_eq, r=alexcrichton
Implement Eq, PartialEq and Hash for atomic::Ordering r? @alexcrichton
2 parents 29aa466 + cd70d7d commit b08a52c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/sync/atomic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ unsafe impl<T> Sync for AtomicPtr<T> {}
188188
/// [Ordering::Relaxed]: #variant.Relaxed
189189
/// [Ordering::SeqCst]: #variant.SeqCst
190190
#[stable(feature = "rust1", since = "1.0.0")]
191-
#[derive(Copy, Clone, Debug)]
191+
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
192192
#[non_exhaustive]
193193
pub enum Ordering {
194194
/// No ordering constraints, only atomic operations.

0 commit comments

Comments
 (0)