Skip to content

Commit 016c3f0

Browse files
committed
---
yaml --- r: 170903 b: refs/heads/try c: cfb2e2a h: refs/heads/master i: 170901: b6fe402 170899: a05fb7c 170895: 86d3520 v: v3
1 parent 66cd01a commit 016c3f0

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 73a25f55ad748b4d3516417c711b99ce446591af
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
5-
refs/heads/try: 340ac040f7603e169a3739c65956ed2213622be5
5+
refs/heads/try: cfb2e2acd72c651f97f285a86956f3f01a461a2d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/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/try/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/try/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)