diff options
Diffstat (limited to 'ir/int.rs')
-rw-r--r-- | ir/int.rs | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -54,11 +54,8 @@ pub enum IntKind { /// A 16-bit signed integer. I16, - /// A 16-bit integer, used only for enum size representation. - U16, - /// Either a `char16_t` or a `wchar_t`. - Char16, + U16, /// A 32-bit signed integer. I32, @@ -97,7 +94,7 @@ impl IntKind { // to know whether it is or not right now (unlike char, there's no // WChar_S / WChar_U). Bool | UChar | UShort | UInt | ULong | ULongLong | U8 | U16 | - Char16 | WChar | U32 | U64 | U128 => false, + WChar | U32 | U64 | U128 => false, SChar | Short | Int | Long | LongLong | I8 | I16 | I32 | I64 | I128 => true, @@ -115,7 +112,7 @@ impl IntKind { use self::IntKind::*; Some(match *self { Bool | UChar | SChar | U8 | I8 | Char { .. } => 1, - U16 | I16 | Char16 => 2, + U16 | I16 => 2, U32 | I32 => 4, U64 | I64 => 8, I128 | U128 => 16, |