@@ -31,7 +31,7 @@ use crate::num::FpCategory;
31
31
/// let r = f32::RADIX;
32
32
/// ```
33
33
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
34
- #[ rustc_deprecated ( since = "TBD" , reason = "replaced by the `RADIX` associated constant on `f32`" ) ]
34
+ #[ deprecated ( since = "TBD" , note = "replaced by the `RADIX` associated constant on `f32`" ) ]
35
35
pub const RADIX : u32 = f32:: RADIX ;
36
36
37
37
/// Number of significant digits in base 2.
@@ -48,9 +48,9 @@ pub const RADIX: u32 = f32::RADIX;
48
48
/// let d = f32::MANTISSA_DIGITS;
49
49
/// ```
50
50
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
51
- #[ rustc_deprecated (
51
+ #[ deprecated (
52
52
since = "TBD" ,
53
- reason = "replaced by the `MANTISSA_DIGITS` associated constant on `f32`"
53
+ note = "replaced by the `MANTISSA_DIGITS` associated constant on `f32`"
54
54
) ]
55
55
pub const MANTISSA_DIGITS : u32 = f32:: MANTISSA_DIGITS ;
56
56
@@ -68,7 +68,7 @@ pub const MANTISSA_DIGITS: u32 = f32::MANTISSA_DIGITS;
68
68
/// let d = f32::DIGITS;
69
69
/// ```
70
70
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
71
- #[ rustc_deprecated ( since = "TBD" , reason = "replaced by the `DIGITS` associated constant on `f32`" ) ]
71
+ #[ deprecated ( since = "TBD" , note = "replaced by the `DIGITS` associated constant on `f32`" ) ]
72
72
pub const DIGITS : u32 = f32:: DIGITS ;
73
73
74
74
/// [Machine epsilon] value for `f32`.
@@ -89,10 +89,7 @@ pub const DIGITS: u32 = f32::DIGITS;
89
89
/// let e = f32::EPSILON;
90
90
/// ```
91
91
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
92
- #[ rustc_deprecated(
93
- since = "TBD" ,
94
- reason = "replaced by the `EPSILON` associated constant on `f32`"
95
- ) ]
92
+ #[ deprecated( since = "TBD" , note = "replaced by the `EPSILON` associated constant on `f32`" ) ]
96
93
pub const EPSILON : f32 = f32:: EPSILON ;
97
94
98
95
/// Smallest finite `f32` value.
@@ -109,7 +106,7 @@ pub const EPSILON: f32 = f32::EPSILON;
109
106
/// let min = f32::MIN;
110
107
/// ```
111
108
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
112
- #[ rustc_deprecated ( since = "TBD" , reason = "replaced by the `MIN` associated constant on `f32`" ) ]
109
+ #[ deprecated ( since = "TBD" , note = "replaced by the `MIN` associated constant on `f32`" ) ]
113
110
pub const MIN : f32 = f32:: MIN ;
114
111
115
112
/// Smallest positive normal `f32` value.
@@ -126,10 +123,7 @@ pub const MIN: f32 = f32::MIN;
126
123
/// let min = f32::MIN_POSITIVE;
127
124
/// ```
128
125
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
129
- #[ rustc_deprecated(
130
- since = "TBD" ,
131
- reason = "replaced by the `MIN_POSITIVE` associated constant on `f32`"
132
- ) ]
126
+ #[ deprecated( since = "TBD" , note = "replaced by the `MIN_POSITIVE` associated constant on `f32`" ) ]
133
127
pub const MIN_POSITIVE : f32 = f32:: MIN_POSITIVE ;
134
128
135
129
/// Largest finite `f32` value.
@@ -146,7 +140,7 @@ pub const MIN_POSITIVE: f32 = f32::MIN_POSITIVE;
146
140
/// let max = f32::MAX;
147
141
/// ```
148
142
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
149
- #[ rustc_deprecated ( since = "TBD" , reason = "replaced by the `MAX` associated constant on `f32`" ) ]
143
+ #[ deprecated ( since = "TBD" , note = "replaced by the `MAX` associated constant on `f32`" ) ]
150
144
pub const MAX : f32 = f32:: MAX ;
151
145
152
146
/// One greater than the minimum possible normal power of 2 exponent.
@@ -163,10 +157,7 @@ pub const MAX: f32 = f32::MAX;
163
157
/// let min = f32::MIN_EXP;
164
158
/// ```
165
159
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
166
- #[ rustc_deprecated(
167
- since = "TBD" ,
168
- reason = "replaced by the `MIN_EXP` associated constant on `f32`"
169
- ) ]
160
+ #[ deprecated( since = "TBD" , note = "replaced by the `MIN_EXP` associated constant on `f32`" ) ]
170
161
pub const MIN_EXP : i32 = f32:: MIN_EXP ;
171
162
172
163
/// Maximum possible power of 2 exponent.
@@ -183,10 +174,7 @@ pub const MIN_EXP: i32 = f32::MIN_EXP;
183
174
/// let max = f32::MAX_EXP;
184
175
/// ```
185
176
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
186
- #[ rustc_deprecated(
187
- since = "TBD" ,
188
- reason = "replaced by the `MAX_EXP` associated constant on `f32`"
189
- ) ]
177
+ #[ deprecated( since = "TBD" , note = "replaced by the `MAX_EXP` associated constant on `f32`" ) ]
190
178
pub const MAX_EXP : i32 = f32:: MAX_EXP ;
191
179
192
180
/// Minimum possible normal power of 10 exponent.
@@ -203,10 +191,7 @@ pub const MAX_EXP: i32 = f32::MAX_EXP;
203
191
/// let min = f32::MIN_10_EXP;
204
192
/// ```
205
193
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
206
- #[ rustc_deprecated(
207
- since = "TBD" ,
208
- reason = "replaced by the `MIN_10_EXP` associated constant on `f32`"
209
- ) ]
194
+ #[ deprecated( since = "TBD" , note = "replaced by the `MIN_10_EXP` associated constant on `f32`" ) ]
210
195
pub const MIN_10_EXP : i32 = f32:: MIN_10_EXP ;
211
196
212
197
/// Maximum possible power of 10 exponent.
@@ -223,10 +208,7 @@ pub const MIN_10_EXP: i32 = f32::MIN_10_EXP;
223
208
/// let max = f32::MAX_10_EXP;
224
209
/// ```
225
210
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
226
- #[ rustc_deprecated(
227
- since = "TBD" ,
228
- reason = "replaced by the `MAX_10_EXP` associated constant on `f32`"
229
- ) ]
211
+ #[ deprecated( since = "TBD" , note = "replaced by the `MAX_10_EXP` associated constant on `f32`" ) ]
230
212
pub const MAX_10_EXP : i32 = f32:: MAX_10_EXP ;
231
213
232
214
/// Not a Number (NaN).
@@ -243,7 +225,7 @@ pub const MAX_10_EXP: i32 = f32::MAX_10_EXP;
243
225
/// let nan = f32::NAN;
244
226
/// ```
245
227
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
246
- #[ rustc_deprecated ( since = "TBD" , reason = "replaced by the `NAN` associated constant on `f32`" ) ]
228
+ #[ deprecated ( since = "TBD" , note = "replaced by the `NAN` associated constant on `f32`" ) ]
247
229
pub const NAN : f32 = f32:: NAN ;
248
230
249
231
/// Infinity (∞).
@@ -260,10 +242,7 @@ pub const NAN: f32 = f32::NAN;
260
242
/// let inf = f32::INFINITY;
261
243
/// ```
262
244
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
263
- #[ rustc_deprecated(
264
- since = "TBD" ,
265
- reason = "replaced by the `INFINITY` associated constant on `f32`"
266
- ) ]
245
+ #[ deprecated( since = "TBD" , note = "replaced by the `INFINITY` associated constant on `f32`" ) ]
267
246
pub const INFINITY : f32 = f32:: INFINITY ;
268
247
269
248
/// Negative infinity (−∞).
@@ -280,10 +259,7 @@ pub const INFINITY: f32 = f32::INFINITY;
280
259
/// let ninf = f32::NEG_INFINITY;
281
260
/// ```
282
261
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
283
- #[ rustc_deprecated(
284
- since = "TBD" ,
285
- reason = "replaced by the `NEG_INFINITY` associated constant on `f32`"
286
- ) ]
262
+ #[ deprecated( since = "TBD" , note = "replaced by the `NEG_INFINITY` associated constant on `f32`" ) ]
287
263
pub const NEG_INFINITY : f32 = f32:: NEG_INFINITY ;
288
264
289
265
/// Basic mathematical constants.
0 commit comments