Skip to content

Commit 1858bdc

Browse files
Rollup merge of rust-lang#127073 - Sky9x:unnecessary-seqcst, r=Nilstrieb
Remove unnecessary SeqCst in `impl fmt::Pointer for AtomicPtr` Unnecessarily strict ordering.
2 parents aaed209 + 48dc678 commit 1858bdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/sync/atomic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3766,7 +3766,7 @@ impl<T> fmt::Debug for AtomicPtr<T> {
37663766
#[stable(feature = "atomic_pointer", since = "1.24.0")]
37673767
impl<T> fmt::Pointer for AtomicPtr<T> {
37683768
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
3769-
fmt::Pointer::fmt(&self.load(Ordering::SeqCst), f)
3769+
fmt::Pointer::fmt(&self.load(Ordering::Relaxed), f)
37703770
}
37713771
}
37723772

0 commit comments

Comments
 (0)