summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2016-08-24 02:37:19 +0300
committerest31 <MTest31@outlook.com>2016-12-30 15:17:25 +0100
commit4e2b946e6539b4866c672cda6958fc1a2fe80687 (patch)
tree472436b596dbf5a5df365d16474ac04db1e5a6c7 /src/libsyntax
parentd4d5be18b702b5fd8b38b67d503860f788a14acd (diff)
downloadrust-4e2b946e6539b4866c672cda6958fc1a2fe80687.tar.gz
rust-4e2b946e6539b4866c672cda6958fc1a2fe80687.zip
Cleanup FIXMEs
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index d1257a02a58..60402fe1a66 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -1207,17 +1207,6 @@ impl IntTy {
         format!("{}{}", val as u128, self.ty_to_string())
     }
 
-    pub fn ty_max(&self) -> u64 {
-        match *self {
-            IntTy::I8 => 0x80,
-            IntTy::I16 => 0x8000,
-            IntTy::Is | IntTy::I32 => 0x80000000, // FIXME: actually ni about Is
-            IntTy::I64 => 0x8000000000000000,
-            // FIXME: i128
-            IntTy::I128 => !0u64,
-        }
-    }
-
     pub fn bit_width(&self) -> Option<usize> {
         Some(match *self {
             IntTy::Is => return None,
@@ -1256,17 +1245,6 @@ impl UintTy {
         format!("{}{}", val, self.ty_to_string())
     }
 
-    pub fn ty_max(&self) -> u64 {
-        match *self {
-            UintTy::U8 => 0xff,
-            UintTy::U16 => 0xffff,
-            UintTy::Us | UintTy::U32 => 0xffffffff, // FIXME: actually ni about Us
-            UintTy::U64 => 0xffffffffffffffff,
-            // FIXME: i128
-            UintTy::U128 => 0xffffffffffffffff,
-        }
-    }
-
     pub fn bit_width(&self) -> Option<usize> {
         Some(match *self {
             UintTy::Us => return None,