From e11e8754dee0332874ab2a15960e123adffc2bab Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 12 Apr 2011 15:09:33 -0700 Subject: rustc: Add "float" as a type to the pretty printer --- src/comp/pretty/pprust.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/comp') diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs index 8c09393a..dd36f57b 100644 --- a/src/comp/pretty/pprust.rs +++ b/src/comp/pretty/pprust.rs @@ -125,6 +125,7 @@ impure fn print_type(ps s, &@ast.ty ty) { case (ast.ty_bool) {wrd(s.s, "bool");} case (ast.ty_int) {wrd(s.s, "int");} case (ast.ty_uint) {wrd(s.s, "uint");} + case (ast.ty_float) {wrd(s.s, "float");} case (ast.ty_machine(?tm)) {wrd(s.s, common.ty_mach_to_str(tm));} case (ast.ty_char) {wrd(s.s, "char");} case (ast.ty_str) {wrd(s.s, "str");} -- cgit v1.2.3