]> git.lizzy.rs Git - rust.git/commitdiff
Add FIXME comments regarding issue #11526.
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>
Fri, 17 Jan 2014 21:54:13 +0000 (08:54 +1100)
committerBrendan Zabarauskas <bjzaba@yahoo.com.au>
Fri, 17 Jan 2014 22:13:10 +0000 (09:13 +1100)
src/libstd/num/f32.rs
src/libstd/num/f64.rs
src/libstd/num/int_macros.rs

index 696862535628422525b93f61aad829495859744e..6eb964944201e8e8afa6f61a1095e3c55077ef22 100644 (file)
@@ -96,6 +96,9 @@ fn tan(n: c_float) -> c_float = cmath::c_float::tan,
     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 @@ fn tanh(n: c_float) -> c_float = cmath::c_float::tanh
 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;
 
index bdfb42b4b88dd2e7cce4beb53a8c551d9457a95b..32fe1391db454aef330b90c358e0976e32d71d17 100644 (file)
@@ -101,6 +101,9 @@ fn tanh(n: c_double) -> c_double = cmath::c_double::tanh
 
 // 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 @@ fn tanh(n: c_double) -> c_double = cmath::c_double::tanh
 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;
 
index 80bc24e2d62582eac0eb3cbcafa63dc061751335..7102a8997584e0991198436498648a09a33acbde 100644 (file)
 
 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 {