Skip to content

Commit 70c202e

Browse files
committed
De-export f32 and f64.
1 parent 3eb7b5c commit 70c202e

File tree

3 files changed

+3
-45
lines changed

3 files changed

+3
-45
lines changed

src/libcore/core.rc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,7 @@ mod u64 {
183183
mod box;
184184
mod char;
185185
mod float;
186-
#[legacy_exports]
187186
mod f32;
188-
#[legacy_exports]
189187
mod f64;
190188
#[legacy_exports]
191189
mod str;

src/libcore/f32.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,9 @@
44

55
//! Operations and constants for `f32`
66
7-
// PORT
8-
97
pub use cmath::c_float::*;
108
pub use cmath::c_float_targ_consts::*;
119

12-
export add, sub, mul, div, rem, lt, le, eq, ne, ge, gt;
13-
export is_positive, is_negative, is_nonpositive, is_nonnegative;
14-
export is_zero, is_infinite, is_finite;
15-
export NaN, is_NaN, infinity, neg_infinity;
16-
export consts;
17-
export logarithm;
18-
export acos, asin, atan, atan2, cbrt, ceil, copysign, cos, cosh, floor;
19-
export erf, erfc, exp, expm1, exp2, abs, abs_sub;
20-
export mul_add, fmax, fmin, nextafter, frexp, hypot, ldexp;
21-
export lgamma, ln, log_radix, ln1p, log10, log2, ilog_radix;
22-
export modf, pow, round, sin, sinh, sqrt, tan, tanh, tgamma, trunc;
23-
export signbit;
24-
2510
// These are not defined inside consts:: for consistency with
2611
// the integer types
2712

src/libcore/f64.rs

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,14 @@
44

55
//! Operations and constants for `f64`
66
7-
// PORT
7+
pub use cmath::c_double::*;
8+
pub use cmath::c_double_targ_consts::*;
89

9-
use cmath::c_double::*;
10-
use cmath::c_double_targ_consts::*;
10+
// FIXME (#1433): obtain these in a different way
1111

1212
// These are not defined inside consts:: for consistency with
1313
// the integer types
1414

15-
// Even though this module exports everything defined in it,
16-
// because it contains re-exports, we also have to explicitly
17-
// export locally defined things. That's a bit annoying.
18-
export add, sub, mul, div, rem, lt, le, eq, ne, ge, gt;
19-
export is_positive, is_negative, is_nonpositive, is_nonnegative;
20-
export is_zero, is_infinite, is_finite;
21-
export NaN, is_NaN, infinity, neg_infinity;
22-
export consts;
23-
export logarithm;
24-
export acos, asin, atan, atan2, cbrt, ceil, copysign, cos, cosh, floor;
25-
export erf, erfc, exp, expm1, exp2, abs, abs_sub;
26-
export mul_add, fmax, fmin, nextafter, frexp, hypot, ldexp;
27-
export lgamma, ln, log_radix, ln1p, log10, log2, ilog_radix;
28-
export modf, pow, round, sin, sinh, sqrt, tan, tanh, tgamma, trunc;
29-
export signbit;
30-
export epsilon;
31-
32-
export j0, j1, jn, y0, y1, yn;
33-
34-
export num;
35-
36-
// PORT check per architecture
37-
38-
// FIXME (#1433): obtain these in a different way
39-
4015
pub const radix: uint = 2u;
4116

4217
pub const mantissa_digits: uint = 53u;

0 commit comments

Comments
 (0)