From a9e2327a18e782df524c14dc42910d61a4785324 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 9 Sep 2010 15:59:29 -0700 Subject: Switch tags to purely nominal, removing TY_iso and TY_idx. Seems to mostly work, possibly a little bumpy. Changes a lot. --- src/comp/util/common.rs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src/comp/util') 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) { -- cgit v1.2.3