Skip to content

Commit 361ee5a

Browse files
lkupergraydon
authored andcommitted
Oops -- if we're going to use the pretty-printer, we need it to work.
1 parent ba537fa commit 361ee5a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/comp/pretty/pprust.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,11 @@ impure fn print_literal(ps s, @ast.lit lit) {
379379
wrd(s.s, common.istr(val as int));
380380
wrd(s.s, common.ty_mach_to_str(mach));
381381
}
382+
case (ast.lit_mach_float(?mach,?val)) {
383+
// val is already a str
384+
wrd(s.s, val);
385+
wrd(s.s, common.ty_mach_to_str(mach));
386+
}
382387
case (ast.lit_nil) {wrd(s.s, "()");}
383388
case (ast.lit_bool(?val)) {
384389
if (val) {wrd(s.s, "true");} else {wrd(s.s, "false");}

0 commit comments

Comments
 (0)