From 0b88b4ef09ca293acff898d14ec267c13f2ff3b2 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Wed, 8 Aug 2018 14:58:47 +0200 Subject: [PATCH] Add patch to disable float fmt, because it is big --- ...-Disable-float-fmt-because-it-is-big.patch | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 0004-Disable-float-fmt-because-it-is-big.patch diff --git a/0004-Disable-float-fmt-because-it-is-big.patch b/0004-Disable-float-fmt-because-it-is-big.patch new file mode 100644 index 00000000000..44e7ca20c9e --- /dev/null +++ b/0004-Disable-float-fmt-because-it-is-big.patch @@ -0,0 +1,75 @@ +From adee817b4cdc2bda63419e0bb47c47551d71825b Mon Sep 17 00:00:00 2001 +From: bjorn3 +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 fmt::UpperHex for Wrapping { + } + + // 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) +