Rollup merge of #127073 - Sky9x:unnecessary-seqcst, r=Nilstrieb · model-checking/verify-rust-std@1858bdc (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 1858bdc
Rollup merge of rust-lang#127073 - Sky9x:unnecessary-seqcst, r=Nilstrieb
Remove unnecessary SeqCst in `impl fmt::Pointer for AtomicPtr` Unnecessarily strict ordering.
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 1 addition & 1 deletion
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 |