Remove unnecessary SeqCst in impl fmt::Pointer for AtomicPtr
· model-checking/verify-rust-std@48dc678 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit 48dc678
Remove unnecessary SeqCst in impl fmt::Pointer for AtomicPtr
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -3766,7 +3766,7 @@ impl fmt::Debug for AtomicPtr { | ||
3766 | 3766 | #[stable(feature = "atomic_pointer", since = "1.24.0")] |
3767 | 3767 | impl<T> fmt::Pointer for AtomicPtr<T> { |
3768 | 3768 | 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) | |
3770 | 3770 | } |
3771 | 3771 | } |
3772 | 3772 |