Oops -- if we're going to use the pretty-printer, we need it to work.

This commit is contained in:
Lindsey Kuper 2011-04-01 17:48:47 -07:00 committed by Graydon Hoare
parent ba537fa5f5
commit 361ee5a68b

View File

@ -379,6 +379,11 @@ fn get_span(&ast.ty_field f) -> common.span {
wrd(s.s, common.istr(val as int));
wrd(s.s, common.ty_mach_to_str(mach));
}
case (ast.lit_mach_float(?mach,?val)) {
// val is already a str
wrd(s.s, val);
wrd(s.s, common.ty_mach_to_str(mach));
}
case (ast.lit_nil) {wrd(s.s, "()");}
case (ast.lit_bool(?val)) {
if (val) {wrd(s.s, "true");} else {wrd(s.s, "false");}