mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
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 @@ impure fn print_literal(ps s, @ast.lit lit) {
|
||||
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