]> git.lizzy.rs Git - rust.git/commitdiff
num: remove deprecated functionality.
authorHuon Wilson <dbau.pp+github@gmail.com>
Fri, 2 Jan 2015 11:33:07 +0000 (22:33 +1100)
committerHuon Wilson <dbau.pp+github@gmail.com>
Tue, 6 Jan 2015 12:21:01 +0000 (23:21 +1100)
src/libcore/num/mod.rs
src/libstd/num/mod.rs
src/libstd/num/uint_macros.rs

index 426c858d408adb142123fba77c491184a239d08e..87973eacc665b9e1423835b2d773cfdaf382d7c3 100644 (file)
@@ -1248,18 +1248,6 @@ pub trait Float
     /// Returns the `1` value.
     fn one() -> Self;
 
-    /// Returns true if this value is NaN and false otherwise.
-    fn is_nan(self) -> bool;
-    /// Returns true if this value is positive infinity or negative infinity and
-    /// false otherwise.
-    fn is_infinite(self) -> bool;
-    /// Returns true if this number is neither infinite nor NaN.
-    fn is_finite(self) -> bool;
-    /// Returns true if this number is neither zero, infinite, denormal, or NaN.
-    fn is_normal(self) -> bool;
-    /// Returns the category that this number falls into.
-    fn classify(self) -> FpCategory;
-
     // FIXME (#5527): These should be associated constants
 
     /// Returns the number of binary digits of mantissa that this type supports.
@@ -1283,6 +1271,18 @@ pub trait Float
     /// Returns the largest finite value that this type can represent.
     fn max_value() -> Self;
 
+    /// Returns true if this value is NaN and false otherwise.
+    fn is_nan(self) -> bool;
+    /// Returns true if this value is positive infinity or negative infinity and
+    /// false otherwise.
+    fn is_infinite(self) -> bool;
+    /// Returns true if this number is neither infinite nor NaN.
+    fn is_finite(self) -> bool;
+    /// Returns true if this number is neither zero, infinite, denormal, or NaN.
+    fn is_normal(self) -> bool;
+    /// Returns the category that this number falls into.
+    fn classify(self) -> FpCategory;
+
     /// Returns the mantissa, exponent and sign as integers, respectively.
     fn integer_decode(self) -> (u64, i16, i8);
 
index c126eb1d6cf17cd5fbe81fbf41d8f51a2250965a..98e3bf2f6ba91db36c3d13a910912480c18bbe30 100644 (file)
@@ -112,8 +112,6 @@ pub trait FloatMath: Float {
     fn atanh(self) -> Self;
 }
 
-// DEPRECATED
-
 /// Helper function for testing numeric operations
 #[cfg(test)]
 pub fn test_num<T>(ten: T, two: T) where
index 08ea1b024c99360264b37d989ac2c099486e1014..4ce15491a0e539dd6bb7be481f171b994083521c 100644 (file)
@@ -14,8 +14,6 @@
 
 macro_rules! uint_module { ($T:ty) => (
 
-// String conversion functions and impl num -> str
-
 #[cfg(test)]
 mod tests {
     use prelude::v1::*;