We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e0ea54 commit 2370c16Copy full SHA for 2370c16
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: ba537fa5f5d7b816226871d0fffe2a9de4abd0ff
+refs/heads/master: 361ee5a68bf23c9fc65aee39618b5d1b0db4941b
trunk/src/comp/pretty/pprust.rs
@@ -379,6 +379,11 @@ impure fn print_literal(ps s, @ast.lit lit) {
379
wrd(s.s, common.istr(val as int));
380
wrd(s.s, common.ty_mach_to_str(mach));
381
}
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
+ }
387
case (ast.lit_nil) {wrd(s.s, "()");}
388
case (ast.lit_bool(?val)) {
389
if (val) {wrd(s.s, "true");} else {wrd(s.s, "false");}
0 commit comments