Add FIXME comments regarding issue #11526.
This commit is contained in:
parent
472dfe74b3
commit
f125b71c00
@ -96,6 +96,9 @@ delegate!(
|
||||
fn tanh(n: c_float) -> c_float = cmath::c_float::tanh
|
||||
)
|
||||
|
||||
// FIXME(#11621): These constants should be deprecated once CTFE is implemented
|
||||
// in favour of calling their respective functions in `Bounded` and `Float`.
|
||||
|
||||
pub static RADIX: uint = 2u;
|
||||
|
||||
pub static MANTISSA_DIGITS: uint = 53u;
|
||||
@ -122,6 +125,10 @@ pub static NEG_INFINITY: f32 = -1.0_f32/0.0_f32;
|
||||
pub mod consts {
|
||||
// FIXME (requires Issue #1433 to fix): replace with mathematical
|
||||
// staticants from cmath.
|
||||
|
||||
// FIXME(#11621): These constants should be deprecated once CTFE is
|
||||
// implemented in favour of calling their respective functions in `Real`.
|
||||
|
||||
/// Archimedes' constant
|
||||
pub static PI: f32 = 3.14159265358979323846264338327950288_f32;
|
||||
|
||||
|
@ -101,6 +101,9 @@ delegate!(
|
||||
|
||||
// FIXME (#1433): obtain these in a different way
|
||||
|
||||
// FIXME(#11621): These constants should be deprecated once CTFE is implemented
|
||||
// in favour of calling their respective functions in `Bounded` and `Float`.
|
||||
|
||||
pub static RADIX: uint = 2u;
|
||||
|
||||
pub static MANTISSA_DIGITS: uint = 53u;
|
||||
@ -129,6 +132,10 @@ pub static NEG_INFINITY: f64 = -1.0_f64/0.0_f64;
|
||||
pub mod consts {
|
||||
// FIXME (requires Issue #1433 to fix): replace with mathematical
|
||||
// constants from cmath.
|
||||
|
||||
// FIXME(#11621): These constants should be deprecated once CTFE is
|
||||
// implemented in favour of calling their respective functions in `Real`.
|
||||
|
||||
/// Archimedes' constant
|
||||
pub static PI: f64 = 3.14159265358979323846264338327950288_f64;
|
||||
|
||||
|
@ -13,11 +13,19 @@
|
||||
|
||||
macro_rules! int_module (($T:ty, $bits:expr) => (
|
||||
|
||||
// FIXME(#11621): Should be deprecated once CTFE is implemented in favour of
|
||||
// calling the `mem::size_of` function.
|
||||
pub static bits : uint = $bits;
|
||||
// FIXME(#11621): Should be deprecated once CTFE is implemented in favour of
|
||||
// calling the `mem::size_of` function.
|
||||
pub static bytes : uint = ($bits / 8);
|
||||
|
||||
// FIXME(#11621): Should be deprecated once CTFE is implemented in favour of
|
||||
// calling the `Bounded::min_value` function.
|
||||
pub static min_value: $T = (-1 as $T) << (bits - 1);
|
||||
// FIXME(#9837): Compute min_value like this so the high bits that shouldn't exist are 0.
|
||||
// FIXME(#11621): Should be deprecated once CTFE is implemented in favour of
|
||||
// calling the `Bounded::max_value` function.
|
||||
pub static max_value: $T = !min_value;
|
||||
|
||||
impl CheckedDiv for $T {
|
||||
|
Loading…
x
Reference in New Issue
Block a user