@@ -31,7 +31,7 @@ use crate::num::FpCategory;
3131/// let r = f32::RADIX;
3232/// ```
3333#[ 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`" ) ]
3535pub const RADIX : u32 = f32:: RADIX ;
3636
3737/// Number of significant digits in base 2.
@@ -48,9 +48,9 @@ pub const RADIX: u32 = f32::RADIX;
4848/// let d = f32::MANTISSA_DIGITS;
4949/// ```
5050#[ stable( feature = "rust1" , since = "1.0.0" ) ]
51- #[ rustc_deprecated (
51+ #[ deprecated (
5252 since = "TBD" ,
53- reason = "replaced by the `MANTISSA_DIGITS` associated constant on `f32`"
53+ note = "replaced by the `MANTISSA_DIGITS` associated constant on `f32`"
5454) ]
5555pub const MANTISSA_DIGITS : u32 = f32:: MANTISSA_DIGITS ;
5656
@@ -68,7 +68,7 @@ pub const MANTISSA_DIGITS: u32 = f32::MANTISSA_DIGITS;
6868/// let d = f32::DIGITS;
6969/// ```
7070#[ 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`" ) ]
7272pub const DIGITS : u32 = f32:: DIGITS ;
7373
7474/// [Machine epsilon] value for `f32`.
@@ -89,10 +89,7 @@ pub const DIGITS: u32 = f32::DIGITS;
8989/// let e = f32::EPSILON;
9090/// ```
9191#[ 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`" ) ]
9693pub const EPSILON : f32 = f32:: EPSILON ;
9794
9895/// Smallest finite `f32` value.
@@ -109,7 +106,7 @@ pub const EPSILON: f32 = f32::EPSILON;
109106/// let min = f32::MIN;
110107/// ```
111108#[ 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`" ) ]
113110pub const MIN : f32 = f32:: MIN ;
114111
115112/// Smallest positive normal `f32` value.
@@ -126,10 +123,7 @@ pub const MIN: f32 = f32::MIN;
126123/// let min = f32::MIN_POSITIVE;
127124/// ```
128125#[ 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`" ) ]
133127pub const MIN_POSITIVE : f32 = f32:: MIN_POSITIVE ;
134128
135129/// Largest finite `f32` value.
@@ -146,7 +140,7 @@ pub const MIN_POSITIVE: f32 = f32::MIN_POSITIVE;
146140/// let max = f32::MAX;
147141/// ```
148142#[ 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`" ) ]
150144pub const MAX : f32 = f32:: MAX ;
151145
152146/// One greater than the minimum possible normal power of 2 exponent.
@@ -163,10 +157,7 @@ pub const MAX: f32 = f32::MAX;
163157/// let min = f32::MIN_EXP;
164158/// ```
165159#[ 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`" ) ]
170161pub const MIN_EXP : i32 = f32:: MIN_EXP ;
171162
172163/// Maximum possible power of 2 exponent.
@@ -183,10 +174,7 @@ pub const MIN_EXP: i32 = f32::MIN_EXP;
183174/// let max = f32::MAX_EXP;
184175/// ```
185176#[ 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`" ) ]
190178pub const MAX_EXP : i32 = f32:: MAX_EXP ;
191179
192180/// Minimum possible normal power of 10 exponent.
@@ -203,10 +191,7 @@ pub const MAX_EXP: i32 = f32::MAX_EXP;
203191/// let min = f32::MIN_10_EXP;
204192/// ```
205193#[ 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`" ) ]
210195pub const MIN_10_EXP : i32 = f32:: MIN_10_EXP ;
211196
212197/// Maximum possible power of 10 exponent.
@@ -223,10 +208,7 @@ pub const MIN_10_EXP: i32 = f32::MIN_10_EXP;
223208/// let max = f32::MAX_10_EXP;
224209/// ```
225210#[ 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`" ) ]
230212pub const MAX_10_EXP : i32 = f32:: MAX_10_EXP ;
231213
232214/// Not a Number (NaN).
@@ -243,7 +225,7 @@ pub const MAX_10_EXP: i32 = f32::MAX_10_EXP;
243225/// let nan = f32::NAN;
244226/// ```
245227#[ 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`" ) ]
247229pub const NAN : f32 = f32:: NAN ;
248230
249231/// Infinity (∞).
@@ -260,10 +242,7 @@ pub const NAN: f32 = f32::NAN;
260242/// let inf = f32::INFINITY;
261243/// ```
262244#[ 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`" ) ]
267246pub const INFINITY : f32 = f32:: INFINITY ;
268247
269248/// Negative infinity (−∞).
@@ -280,10 +259,7 @@ pub const INFINITY: f32 = f32::INFINITY;
280259/// let ninf = f32::NEG_INFINITY;
281260/// ```
282261#[ 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`" ) ]
287263pub const NEG_INFINITY : f32 = f32:: NEG_INFINITY ;
288264
289265/// Basic mathematical constants.
0 commit comments