diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2015-01-06 00:02:05 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2015-01-06 23:21:27 +1100 |
| commit | 49feb0c4310bbb7c290237b5b133cdbdda5ce228 (patch) | |
| tree | 7d90774bfd74acd1bd9ada521d4e75fbabae01c6 | |
| parent | 65922dd42da48631fd9b4ced0d7d82dfec8bd176 (diff) | |
| download | rust-49feb0c4310bbb7c290237b5b133cdbdda5ce228.tar.gz rust-49feb0c4310bbb7c290237b5b133cdbdda5ce228.zip | |
Unstabilise f32/f64 constants that are int/uint.
Pending integer conventions.
| -rw-r--r-- | src/libcore/num/f32.rs | 14 | ||||
| -rw-r--r-- | src/libcore/num/f64.rs | 13 |
2 files changed, 13 insertions, 14 deletions
diff --git a/src/libcore/num/f32.rs b/src/libcore/num/f32.rs index d2334943b3d..f8a85e788e9 100644 --- a/src/libcore/num/f32.rs +++ b/src/libcore/num/f32.rs @@ -22,12 +22,12 @@ use num::Float; use num::FpCategory as Fp; use option::Option; -#[stable] +#[unstable = "pending integer conventions"] pub const RADIX: uint = 2u; -#[stable] +#[unstable = "pending integer conventions"] pub const MANTISSA_DIGITS: uint = 24u; -#[stable] +#[unstable = "pending integer conventions"] pub const DIGITS: uint = 6u; #[stable] @@ -43,14 +43,14 @@ pub const MIN_POS_VALUE: f32 = 1.17549435e-38_f32; #[stable] pub const MAX_VALUE: f32 = 3.40282347e+38_f32; -#[stable] +#[unstable = "pending integer conventions"] pub const MIN_EXP: int = -125; -#[stable] +#[unstable = "pending integer conventions"] pub const MAX_EXP: int = 128; -#[stable] +#[unstable = "pending integer conventions"] pub const MIN_10_EXP: int = -37; -#[stable] +#[unstable = "pending integer conventions"] pub const MAX_10_EXP: int = 38; #[stable] diff --git a/src/libcore/num/f64.rs b/src/libcore/num/f64.rs index 95cc5f22409..840428179cd 100644 --- a/src/libcore/num/f64.rs +++ b/src/libcore/num/f64.rs @@ -26,12 +26,11 @@ use option::Option; // constants are implemented in favour of referencing the respective // members of `Bounded` and `Float`. -#[stable] +#[unstable = "pending integer conventions"] pub const RADIX: uint = 2u; -#[stable] pub const MANTISSA_DIGITS: uint = 53u; -#[stable] +#[unstable = "pending integer conventions"] pub const DIGITS: uint = 15u; #[stable] @@ -47,14 +46,14 @@ pub const MIN_POS_VALUE: f64 = 2.2250738585072014e-308_f64; #[stable] pub const MAX_VALUE: f64 = 1.7976931348623157e+308_f64; -#[stable] +#[unstable = "pending integer conventions"] pub const MIN_EXP: int = -1021; -#[stable] +#[unstable = "pending integer conventions"] pub const MAX_EXP: int = 1024; -#[stable] +#[unstable = "pending integer conventions"] pub const MIN_10_EXP: int = -307; -#[stable] +#[unstable = "pending integer conventions"] pub const MAX_10_EXP: int = 308; #[stable] |
