From 610096e32cc7cfba58358219a1cf25ff72123208 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sun, 24 Feb 2019 11:27:11 +0100 Subject: [PATCH] [alloc] Disable some unsupported stuff --- src/liballoc/boxed.rs | 6 ------ src/liballoc/vec.rs | 2 -- 2 files changed, 8 deletions(-) diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 0cd2373..696535a 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -423,9 +423,6 @@ impl Hasher for Box { fn write_u64(&mut self, i: u64) { (**self).write_u64(i) } - fn write_u128(&mut self, i: u128) { - (**self).write_u128(i) - } fn write_usize(&mut self, i: usize) { (**self).write_usize(i) } @@ -441,9 +438,6 @@ impl Hasher for Box { fn write_i64(&mut self, i: i64) { (**self).write_i64(i) } - fn write_i128(&mut self, i: i128) { - (**self).write_i128(i) - } fn write_isize(&mut self, i: isize) { (**self).write_isize(i) } diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 229dafc..944856e 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -1601,13 +1601,11 @@ impl_is_zero!(i8, |x| x == 0); impl_is_zero!(i16, |x| x == 0); impl_is_zero!(i32, |x| x == 0); impl_is_zero!(i64, |x| x == 0); -impl_is_zero!(i128, |x| x == 0); impl_is_zero!(isize, |x| x == 0); impl_is_zero!(u16, |x| x == 0); impl_is_zero!(u32, |x| x == 0); impl_is_zero!(u64, |x| x == 0); -impl_is_zero!(u128, |x| x == 0); impl_is_zero!(usize, |x| x == 0); impl_is_zero!(bool, |x| x == false); -- 2.17.2 (Apple Git-113)