Add patch to disable float fmt, because it is big
This commit is contained in:
parent
c4705af4e2
commit
0b88b4ef09
75
0004-Disable-float-fmt-because-it-is-big.patch
Normal file
75
0004-Disable-float-fmt-because-it-is-big.patch
Normal file
@ -0,0 +1,75 @@
|
||||
From adee817b4cdc2bda63419e0bb47c47551d71825b Mon Sep 17 00:00:00 2001
|
||||
From: bjorn3 <bjorn3@users.noreply.github.com>
|
||||
Date: Wed, 8 Aug 2018 14:57:06 +0200
|
||||
Subject: [PATCH] Disable float fmt, because it is big
|
||||
|
||||
---
|
||||
src/libcore/fmt/mod.rs | 6 ++++--
|
||||
src/libcore/num/mod.rs | 8 ++++----
|
||||
2 files changed, 8 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs
|
||||
index 928f95e..85dc9f9 100644
|
||||
--- a/src/libcore/fmt/mod.rs
|
||||
+++ b/src/libcore/fmt/mod.rs
|
||||
@@ -15,13 +15,13 @@
|
||||
use cell::{UnsafeCell, Cell, RefCell, Ref, RefMut};
|
||||
use marker::PhantomData;
|
||||
use mem;
|
||||
-use num::flt2dec;
|
||||
+//use num::flt2dec;
|
||||
use ops::Deref;
|
||||
use result;
|
||||
use slice;
|
||||
use str;
|
||||
|
||||
-mod float;
|
||||
+//mod float;
|
||||
mod num;
|
||||
mod builders;
|
||||
|
||||
@@ -1299,6 +1299,7 @@ impl<'a> Formatter<'a> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
+ /*
|
||||
/// Takes the formatted parts and applies the padding.
|
||||
/// Assumes that the caller already has rendered the parts with required precision,
|
||||
/// so that `self.precision` can be ignored.
|
||||
@@ -1378,6 +1379,7 @@ impl<'a> Formatter<'a> {
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
+ */
|
||||
|
||||
/// Writes some data to the underlying buffer contained within this
|
||||
/// formatter.
|
||||
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
|
||||
index 09ddf4e..2c0b1a2 100644
|
||||
--- a/src/libcore/num/mod.rs
|
||||
+++ b/src/libcore/num/mod.rs
|
||||
@@ -170,8 +170,8 @@ impl<T: fmt::UpperHex> fmt::UpperHex for Wrapping<T> {
|
||||
}
|
||||
|
||||
// All these modules are technically private and only exposed for coretests:
|
||||
-pub mod flt2dec;
|
||||
-pub mod dec2flt;
|
||||
+//pub mod flt2dec;
|
||||
+//pub mod dec2flt;
|
||||
pub mod bignum;
|
||||
pub mod diy_float;
|
||||
|
||||
@@ -4613,8 +4613,8 @@ impl fmt::Display for ParseIntError {
|
||||
}
|
||||
}
|
||||
|
||||
-#[stable(feature = "rust1", since = "1.0.0")]
|
||||
-pub use num::dec2flt::ParseFloatError;
|
||||
+//#[stable(feature = "rust1", since = "1.0.0")]
|
||||
+//pub use num::dec2flt::ParseFloatError;
|
||||
|
||||
// Conversion traits for primitive integer and float types
|
||||
// Conversions T -> T are covered by a blanket impl and therefore excluded
|
||||
--
|
||||
2.15.2 (Apple Git-101.1)
|
||||
|
Loading…
Reference in New Issue
Block a user