diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-06-29 14:07:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-29 14:07:22 +0200 |
| commit | 0886faaeeaa836ee3c66310bd3b8edcc52737aa5 (patch) | |
| tree | 3c09271fb7d36906691945787658c96494cdc696 | |
| parent | e9594b504d17612e059247c49f737a9884d07e17 (diff) | |
| parent | df7331fcd2d2f059f98fbbf19eb2e493188e82da (diff) | |
| download | rust-0886faaeeaa836ee3c66310bd3b8edcc52737aa5.tar.gz rust-0886faaeeaa836ee3c66310bd3b8edcc52737aa5.zip | |
Rollup merge of #127073 - Sky9x:unnecessary-seqcst, r=Nilstrieb
Remove unnecessary SeqCst in `impl fmt::Pointer for AtomicPtr` Unnecessarily strict ordering.
| -rw-r--r-- | library/core/src/sync/atomic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs index 1d19c985f23..df108f5e0e4 100644 --- a/library/core/src/sync/atomic.rs +++ b/library/core/src/sync/atomic.rs @@ -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) } } |
