Remove 0006-alloc-Disable-some-unsupported-stuff.patch
This commit is contained in:
parent
11af20b156
commit
e09ae25299
@ -1,54 +0,0 @@
|
||||
From 610096e32cc7cfba58358219a1cf25ff72123208 Mon Sep 17 00:00:00 2001
|
||||
From: bjorn3 <bjorn3@users.noreply.github.com>
|
||||
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<T: ?Sized + Hasher> Hasher for Box<T> {
|
||||
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<T: ?Sized + Hasher> Hasher for Box<T> {
|
||||
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)
|
@ -66,6 +66,8 @@ fn trans_fn<'a, 'clif, 'tcx: 'a, B: Backend + 'static>(
|
||||
|
||||
// Step 2. Check fn sig for u128 and i128 and replace those functions with a trap.
|
||||
{
|
||||
// FIXME implement u128 and i128 support
|
||||
|
||||
// Step 2a. Check sig for u128 and i128
|
||||
let fn_ty = instance.ty(tcx);
|
||||
let fn_sig = crate::abi::ty_fn_sig(tcx, fn_ty);
|
||||
|
Loading…
x
Reference in New Issue
Block a user