We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c2819d + e4dc11d commit 707d070Copy full SHA for 707d070
src/libcore/sync/atomic.rs
@@ -1819,3 +1819,11 @@ impl<T> fmt::Debug for AtomicPtr<T> {
1819
f.debug_tuple("AtomicPtr").field(&self.load(Ordering::SeqCst)).finish()
1820
}
1821
1822
+
1823
+#[cfg(target_has_atomic = "ptr")]
1824
+#[stable(feature = "atomic_pointer", since = "1.24.0")]
1825
+impl<T> fmt::Pointer for AtomicPtr<T> {
1826
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
1827
+ fmt::Pointer::fmt(&self.load(Ordering::SeqCst), f)
1828
+ }
1829
+}
0 commit comments