File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1328,7 +1328,7 @@ impl<T: ?Sized + fmt::Debug> fmt::Debug for Arc<T> {
1328
1328
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1329
1329
impl < T : ?Sized > fmt:: Pointer for Arc < T > {
1330
1330
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1331
- fmt:: Pointer :: fmt ( & self . ptr , f)
1331
+ fmt:: Pointer :: fmt ( & ( & * * self as * const T ) , f)
1332
1332
}
1333
1333
}
1334
1334
Original file line number Diff line number Diff line change @@ -1072,7 +1072,7 @@ impl<T: ?Sized + fmt::Debug> fmt::Debug for Rc<T> {
1072
1072
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1073
1073
impl < T : ?Sized > fmt:: Pointer for Rc < T > {
1074
1074
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1075
- fmt:: Pointer :: fmt ( & self . ptr , f)
1075
+ fmt:: Pointer :: fmt ( & ( & * * self as * const T ) , f)
1076
1076
}
1077
1077
}
1078
1078
You can’t perform that action at this time.
0 commit comments