File tree 3 files changed +22
-0
lines changed
3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,9 @@ delegate!(
96
96
fn tanh( n: c_float) -> c_float = cmath:: c_float:: tanh
97
97
)
98
98
99
+ // FIXME(#11621): These constants should be deprecated once CTFE is implemented
100
+ // in favour of calling their respective functions in `Bounded` and `Float`.
101
+
99
102
pub static RADIX : uint = 2 u;
100
103
101
104
pub static MANTISSA_DIGITS : uint = 53 u;
@@ -122,6 +125,10 @@ pub static NEG_INFINITY: f32 = -1.0_f32/0.0_f32;
122
125
pub mod consts {
123
126
// FIXME (requires Issue #1433 to fix): replace with mathematical
124
127
// staticants from cmath.
128
+
129
+ // FIXME(#11621): These constants should be deprecated once CTFE is
130
+ // implemented in favour of calling their respective functions in `Real`.
131
+
125
132
/// Archimedes' constant
126
133
pub static PI : f32 = 3.14159265358979323846264338327950288_f32 ;
127
134
Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ delegate!(
101
101
102
102
// FIXME (#1433): obtain these in a different way
103
103
104
+ // FIXME(#11621): These constants should be deprecated once CTFE is implemented
105
+ // in favour of calling their respective functions in `Bounded` and `Float`.
106
+
104
107
pub static RADIX : uint = 2 u;
105
108
106
109
pub static MANTISSA_DIGITS : uint = 53 u;
@@ -129,6 +132,10 @@ pub static NEG_INFINITY: f64 = -1.0_f64/0.0_f64;
129
132
pub mod consts {
130
133
// FIXME (requires Issue #1433 to fix): replace with mathematical
131
134
// constants from cmath.
135
+
136
+ // FIXME(#11621): These constants should be deprecated once CTFE is
137
+ // implemented in favour of calling their respective functions in `Real`.
138
+
132
139
/// Archimedes' constant
133
140
pub static PI : f64 = 3.14159265358979323846264338327950288_f64 ;
134
141
Original file line number Diff line number Diff line change 13
13
14
14
macro_rules! int_module ( ( $T: ty, $bits: expr) => (
15
15
16
+ // FIXME(#11621): Should be deprecated once CTFE is implemented in favour of
17
+ // calling the `mem::size_of` function.
16
18
pub static bits : uint = $bits;
19
+ // FIXME(#11621): Should be deprecated once CTFE is implemented in favour of
20
+ // calling the `mem::size_of` function.
17
21
pub static bytes : uint = ( $bits / 8 ) ;
18
22
23
+ // FIXME(#11621): Should be deprecated once CTFE is implemented in favour of
24
+ // calling the `Bounded::min_value` function.
19
25
pub static min_value: $T = ( -1 as $T) << ( bits - 1 ) ;
20
26
// FIXME(#9837): Compute min_value like this so the high bits that shouldn't exist are 0.
27
+ // FIXME(#11621): Should be deprecated once CTFE is implemented in favour of
28
+ // calling the `Bounded::max_value` function.
21
29
pub static max_value: $T = !min_value;
22
30
23
31
impl CheckedDiv for $T {
You can’t perform that action at this time.
0 commit comments