Skip to content

Commit de89175

Browse files
committed
---
yaml --- r: 171997 b: refs/heads/beta c: cfb2e2a h: refs/heads/master i: 171995: f2f176d v: v3
1 parent 4bd55b5 commit de89175

File tree

4 files changed

+13
-17
lines changed

4 files changed

+13
-17
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b5571ed71a5879c0495a982506258d5d267744ed
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 340ac040f7603e169a3739c65956ed2213622be5
34+
refs/heads/beta: cfb2e2acd72c651f97f285a86956f3f01a461a2d
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/beta/src/libcore/num/mod.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,18 +1248,6 @@ pub trait Float
12481248
/// Returns the `1` value.
12491249
fn one() -> Self;
12501250

1251-
/// Returns true if this value is NaN and false otherwise.
1252-
fn is_nan(self) -> bool;
1253-
/// Returns true if this value is positive infinity or negative infinity and
1254-
/// false otherwise.
1255-
fn is_infinite(self) -> bool;
1256-
/// Returns true if this number is neither infinite nor NaN.
1257-
fn is_finite(self) -> bool;
1258-
/// Returns true if this number is neither zero, infinite, denormal, or NaN.
1259-
fn is_normal(self) -> bool;
1260-
/// Returns the category that this number falls into.
1261-
fn classify(self) -> FpCategory;
1262-
12631251
// FIXME (#5527): These should be associated constants
12641252

12651253
/// Returns the number of binary digits of mantissa that this type supports.
@@ -1283,6 +1271,18 @@ pub trait Float
12831271
/// Returns the largest finite value that this type can represent.
12841272
fn max_value() -> Self;
12851273

1274+
/// Returns true if this value is NaN and false otherwise.
1275+
fn is_nan(self) -> bool;
1276+
/// Returns true if this value is positive infinity or negative infinity and
1277+
/// false otherwise.
1278+
fn is_infinite(self) -> bool;
1279+
/// Returns true if this number is neither infinite nor NaN.
1280+
fn is_finite(self) -> bool;
1281+
/// Returns true if this number is neither zero, infinite, denormal, or NaN.
1282+
fn is_normal(self) -> bool;
1283+
/// Returns the category that this number falls into.
1284+
fn classify(self) -> FpCategory;
1285+
12861286
/// Returns the mantissa, exponent and sign as integers, respectively.
12871287
fn integer_decode(self) -> (u64, i16, i8);
12881288

branches/beta/src/libstd/num/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ pub trait FloatMath: Float {
112112
fn atanh(self) -> Self;
113113
}
114114

115-
// DEPRECATED
116-
117115
/// Helper function for testing numeric operations
118116
#[cfg(test)]
119117
pub fn test_num<T>(ten: T, two: T) where

branches/beta/src/libstd/num/uint_macros.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
macro_rules! uint_module { ($T:ty) => (
1616

17-
// String conversion functions and impl num -> str
18-
1917
#[cfg(test)]
2018
mod tests {
2119
use prelude::v1::*;

0 commit comments

Comments
 (0)