Skip to content

Commit c8a1bda

Browse files
committed
---
yaml --- r: 187922 b: refs/heads/tmp c: c22d026 h: refs/heads/master v: v3
1 parent 46f4c38 commit c8a1bda

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 4a22c3368fe4fd570859fbbf03b971f4913a8569
37+
refs/heads/tmp: c22d026326f10f8a4e60d49c6fbf37de3c970a78
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/tmp/src/test/run-pass/ifmt.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ pub fn main() {
137137
t!(format!("{:+10.3e}", 1.2345e6f64), " +1.234e6");
138138
t!(format!("{:+10.3e}", -1.2345e6f64), " -1.234e6");
139139

140+
// Test that pointers don't get truncated.
141+
{
142+
let val = usize::MAX;
143+
let exp = format!("{:#x}", val);
144+
t!(format!("{:p}", val as *const isize), exp);
145+
}
146+
140147
// Escaping
141148
t!(format!("{{"), "{");
142149
t!(format!("}}"), "}");

0 commit comments

Comments
 (0)