From 6e81d76f2a0836c4feeb7134ffaeeb6e1617541a Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 14 Jul 2017 06:09:31 -0700 Subject: [PATCH] Use raw `isize` and `usize` constructors These have been added upstream! --- src/unstable.rs | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/unstable.rs b/src/unstable.rs index 0b99aeef..916ac46d 100644 --- a/src/unstable.rs +++ b/src/unstable.rs @@ -282,22 +282,8 @@ macro_rules! ints { } ints! { - u8, u16, u32, u64, /*usize,*/ - i8, i16, i32, i64, /*isize,*/ -} - -macro_rules! ints_stringified { - ($($t:ident,)*) => {$( - impl From<$t> for Literal { - fn from(t: $t) -> Literal { - Literal(to_literal(&format!(concat!("{}", stringify!($t)), t))) - } - } - )*} -} - -ints_stringified! { - usize, isize, + u8, u16, u32, u64, usize, + i8, i16, i32, i64, isize, } macro_rules! floats {