Skip to content

Commit 57b850b

Browse files
committed
---
yaml --- r: 187500 b: refs/heads/try c: c22d026 h: refs/heads/master v: v3
1 parent 1e30eb2 commit 57b850b

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
@@ -2,7 +2,7 @@
22
refs/heads/master: b4c965ee803a4521d8b4575f634e036f93e408f3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 3a96d6a9818fe2affc98a187fb1065120458cee9
5-
refs/heads/try: 4a22c3368fe4fd570859fbbf03b971f4913a8569
5+
refs/heads/try: c22d026326f10f8a4e60d49c6fbf37de3c970a78
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/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)