Oops -- if we're going to use the pretty-printer, we need it to work.
This commit is contained in:
parent
ba537fa5f5
commit
361ee5a68b
@ -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");}
|
||||
|
Loading…
Reference in New Issue
Block a user