We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b32d9ad + cbcaf73 commit 04b9c25Copy full SHA for 04b9c25
src/liballoc/arc.rs
@@ -1328,7 +1328,7 @@ impl<T: ?Sized + fmt::Debug> fmt::Debug for Arc<T> {
1328
#[stable(feature = "rust1", since = "1.0.0")]
1329
impl<T: ?Sized> fmt::Pointer for Arc<T> {
1330
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
1331
- fmt::Pointer::fmt(&self.ptr, f)
+ fmt::Pointer::fmt(&(&**self as *const T), f)
1332
}
1333
1334
src/liballoc/rc.rs
@@ -1072,7 +1072,7 @@ impl<T: ?Sized + fmt::Debug> fmt::Debug for Rc<T> {
1072
1073
impl<T: ?Sized> fmt::Pointer for Rc<T> {
1074
1075
1076
1077
1078
0 commit comments