diff options
| author | Patrick Walton <[email protected]> | 2011-04-12 15:09:33 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-04-12 15:10:39 -0700 |
| commit | e11e8754dee0332874ab2a15960e123adffc2bab (patch) | |
| tree | 8450dfd082c6bfb0543a882ebe13b7bfe8079ee5 /src/comp | |
| parent | Further work on typestate. Handles expr_rec and expr_assign now. (diff) | |
| download | rust-e11e8754dee0332874ab2a15960e123adffc2bab.tar.xz rust-e11e8754dee0332874ab2a15960e123adffc2bab.zip | |
rustc: Add "float" as a type to the pretty printer
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/pretty/pprust.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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");} |