File tree Expand file tree Collapse file tree 4 files changed +23
-1
lines changed
branches/snap-stage3/src/libstd/num Expand file tree Collapse file tree 4 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 472dfe74b32bfa855b70bf8ec59beddbd0514be1
4
+ refs/heads/snap-stage3: f125b71c0081acebbfcdd60bfe517d7e4dd388d4
5
5
refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
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