rustc: Add "float" as a type to the pretty printer

This commit is contained in:
Patrick Walton 2011-04-12 15:09:33 -07:00
parent d7e8818414
commit e11e8754de

View file

@ -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");}