Rollup merge of #127073 - Sky9x:unnecessary-seqcst, r=Nilstrieb

Remove unnecessary SeqCst in `impl fmt::Pointer for AtomicPtr`

Unnecessarily strict ordering.
This commit is contained in:
Guillaume Gomez 2024-06-29 14:07:22 +02:00 committed by GitHub
commit 0886faaeea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3766,7 +3766,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
#[stable(feature = "atomic_pointer", since = "1.24.0")]
impl<T> fmt::Pointer for AtomicPtr<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Pointer::fmt(&self.load(Ordering::SeqCst), f)
fmt::Pointer::fmt(&self.load(Ordering::Relaxed), f)
}
}