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.
1 parent 49e1163 commit 254c155Copy full SHA for 254c155
src/libstd/fmt/mod.rs
@@ -1200,7 +1200,17 @@ impl<T> Pointer for *T {
1200
}
1201
impl<T> Pointer for *mut T {
1202
fn fmt(&self, f: &mut Formatter) -> Result {
1203
- secret_pointer(&(*self as *T), f)
+ secret_pointer::<*T>(&(*self as *T), f)
1204
+ }
1205
+}
1206
+impl<'a, T> Pointer for &'a T {
1207
+ fn fmt(&self, f: &mut Formatter) -> Result {
1208
+ secret_pointer::<*T>(&(&**self as *T), f)
1209
1210
1211
+impl<'a, T> Pointer for &'a mut T {
1212
1213
1214
1215
1216
0 commit comments