Skip to content

Commit 8f07fc9

Browse files
committed
---
yaml --- r: 101861 b: refs/heads/master c: 254c155 h: refs/heads/master i: 101859: 3a68eb4 v: v3
1 parent a7bd037 commit 8f07fc9

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 49e11630fa84eefc27a34c39ad28a9afb515c5a1
2+
refs/heads/master: 254c155fca415359d998e79e9989b4219136ccdc
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6e7f170fedd3c526a643c0b2d13863acd982be02
55
refs/heads/try: a97642026c18a624ff6ea01075dd9550f8ed07ff

trunk/src/libstd/fmt/mod.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,17 @@ impl<T> Pointer for *T {
12001200
}
12011201
impl<T> Pointer for *mut T {
12021202
fn fmt(&self, f: &mut Formatter) -> Result {
1203-
secret_pointer(&(*self as *T), f)
1203+
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+
fn fmt(&self, f: &mut Formatter) -> Result {
1213+
secret_pointer::<*T>(&(&**self as *T), f)
12041214
}
12051215
}
12061216

0 commit comments

Comments
 (0)