Skip to content

Commit 6e81d76

Browse files
committed
Use raw isize and usize constructors
These have been added upstream!
1 parent 7f46062 commit 6e81d76

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

src/unstable.rs

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -282,22 +282,8 @@ macro_rules! ints {
282282
}
283283

284284
ints! {
285-
u8, u16, u32, u64, /*usize,*/
286-
i8, i16, i32, i64, /*isize,*/
287-
}
288-
289-
macro_rules! ints_stringified {
290-
($($t:ident,)*) => {$(
291-
impl From<$t> for Literal {
292-
fn from(t: $t) -> Literal {
293-
Literal(to_literal(&format!(concat!("{}", stringify!($t)), t)))
294-
}
295-
}
296-
)*}
297-
}
298-
299-
ints_stringified! {
300-
usize, isize,
285+
u8, u16, u32, u64, usize,
286+
i8, i16, i32, i64, isize,
301287
}
302288

303289
macro_rules! floats {

0 commit comments

Comments
 (0)