diff options
Diffstat (limited to 'src/comp/util')
| -rw-r--r-- | src/comp/util/common.rs | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/comp/util/common.rs b/src/comp/util/common.rs index 9bcb67b2..b3e85ac3 100644 --- a/src/comp/util/common.rs +++ b/src/comp/util/common.rs @@ -3,9 +3,20 @@ import std._uint; type pos = rec(uint line, uint col); type span = rec(str filename, pos lo, pos hi); -type ty_mach = tag( ty_i8(), ty_i16(), ty_i32(), ty_i64(), - ty_u8(), ty_u16(), ty_u32(), ty_u64(), - ty_f32(), ty_f64() ); +tag ty_mach { + ty_i8(); + ty_i16(); + ty_i32(); + ty_i64(); + + ty_u8(); + ty_u16(); + ty_u32(); + ty_u64(); + + ty_f32(); + ty_f64(); +} fn ty_mach_to_str(ty_mach tm) -> str { alt (tm) { |