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:
commit
0886faaeea
1 changed files with 1 additions and 1 deletions
|
@ -3766,7 +3766,7 @@ impl<T> fmt::Debug for AtomicPtr<T> {
|
|||
#[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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue