Skip to content

Commit 271ba5a

Browse files
committed
Stabilize assoc_int_consts
1 parent 2ed25f0 commit 271ba5a

File tree

5 files changed

+32
-38
lines changed

5 files changed

+32
-38
lines changed

src/libcore/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@
138138
#![feature(associated_type_bounds)]
139139
#![feature(const_type_id)]
140140
#![feature(const_caller_location)]
141-
#![feature(assoc_int_consts)]
142141
#![cfg_attr(not(bootstrap), feature(no_niche))] // rust-lang/rust#68303
143142

144143
#[prelude_import]

src/libcore/num/f32.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -154,57 +154,57 @@ pub mod consts {
154154
#[cfg(not(test))]
155155
impl f32 {
156156
/// The radix or base of the internal representation of `f32`.
157-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
157+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
158158
pub const RADIX: u32 = 2;
159159

160160
/// Number of significant digits in base 2.
161-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
161+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
162162
pub const MANTISSA_DIGITS: u32 = 24;
163163

164164
/// Approximate number of significant digits in base 10.
165-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
165+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
166166
pub const DIGITS: u32 = 6;
167167

168168
/// [Machine epsilon] value for `f32`.
169169
///
170170
/// This is the difference between `1.0` and the next larger representable number.
171171
///
172172
/// [Machine epsilon]: https://en.wikipedia.org/wiki/Machine_epsilon
173-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
173+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
174174
pub const EPSILON: f32 = 1.19209290e-07_f32;
175175

176176
/// Smallest finite `f32` value.
177-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
177+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
178178
pub const MIN: f32 = -3.40282347e+38_f32;
179179
/// Smallest positive normal `f32` value.
180-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
180+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
181181
pub const MIN_POSITIVE: f32 = 1.17549435e-38_f32;
182182
/// Largest finite `f32` value.
183-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
183+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
184184
pub const MAX: f32 = 3.40282347e+38_f32;
185185

186186
/// One greater than the minimum possible normal power of 2 exponent.
187-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
187+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
188188
pub const MIN_EXP: i32 = -125;
189189
/// Maximum possible power of 2 exponent.
190-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
190+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
191191
pub const MAX_EXP: i32 = 128;
192192

193193
/// Minimum possible normal power of 10 exponent.
194-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
194+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
195195
pub const MIN_10_EXP: i32 = -37;
196196
/// Maximum possible power of 10 exponent.
197-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
197+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
198198
pub const MAX_10_EXP: i32 = 38;
199199

200200
/// Not a Number (NaN).
201-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
201+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
202202
pub const NAN: f32 = 0.0_f32 / 0.0_f32;
203203
/// Infinity (∞).
204-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
204+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
205205
pub const INFINITY: f32 = 1.0_f32 / 0.0_f32;
206206
/// Negative infinity (-∞).
207-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
207+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
208208
pub const NEG_INFINITY: f32 = -1.0_f32 / 0.0_f32;
209209

210210
/// Returns `true` if this value is `NaN`.

src/libcore/num/f64.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -154,56 +154,56 @@ pub mod consts {
154154
#[cfg(not(test))]
155155
impl f64 {
156156
/// The radix or base of the internal representation of `f64`.
157-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
157+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
158158
pub const RADIX: u32 = 2;
159159

160160
/// Number of significant digits in base 2.
161-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
161+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
162162
pub const MANTISSA_DIGITS: u32 = 53;
163163
/// Approximate number of significant digits in base 10.
164-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
164+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
165165
pub const DIGITS: u32 = 15;
166166

167167
/// [Machine epsilon] value for `f64`.
168168
///
169169
/// This is the difference between `1.0` and the next larger representable number.
170170
///
171171
/// [Machine epsilon]: https://en.wikipedia.org/wiki/Machine_epsilon
172-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
172+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
173173
pub const EPSILON: f64 = 2.2204460492503131e-16_f64;
174174

175175
/// Smallest finite `f64` value.
176-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
176+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
177177
pub const MIN: f64 = -1.7976931348623157e+308_f64;
178178
/// Smallest positive normal `f64` value.
179-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
179+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
180180
pub const MIN_POSITIVE: f64 = 2.2250738585072014e-308_f64;
181181
/// Largest finite `f64` value.
182-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
182+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
183183
pub const MAX: f64 = 1.7976931348623157e+308_f64;
184184

185185
/// One greater than the minimum possible normal power of 2 exponent.
186-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
186+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
187187
pub const MIN_EXP: i32 = -1021;
188188
/// Maximum possible power of 2 exponent.
189-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
189+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
190190
pub const MAX_EXP: i32 = 1024;
191191

192192
/// Minimum possible normal power of 10 exponent.
193-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
193+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
194194
pub const MIN_10_EXP: i32 = -307;
195195
/// Maximum possible power of 10 exponent.
196-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
196+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
197197
pub const MAX_10_EXP: i32 = 308;
198198

199199
/// Not a Number (NaN).
200-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
200+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
201201
pub const NAN: f64 = 0.0_f64 / 0.0_f64;
202202
/// Infinity (∞).
203-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
203+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
204204
pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
205205
/// Negative infinity (-∞).
206-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
206+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
207207
pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
208208

209209
/// Returns `true` if this value is `NaN`.

src/libcore/num/mod.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,10 @@ macro_rules! int_impl {
257257
Basic usage:
258258
259259
```
260-
#![feature(assoc_int_consts)]
261260
", $Feature, "assert_eq!(", stringify!($SelfT), "::MIN, ", stringify!($Min), ");",
262261
$EndFeature, "
263262
```"),
264-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
263+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
265264
pub const MIN: Self = !0 ^ ((!0 as $UnsignedT) >> 1) as Self;
266265
}
267266

@@ -273,11 +272,10 @@ $EndFeature, "
273272
Basic usage:
274273
275274
```
276-
#![feature(assoc_int_consts)]
277275
", $Feature, "assert_eq!(", stringify!($SelfT), "::MAX, ", stringify!($Max), ");",
278276
$EndFeature, "
279277
```"),
280-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
278+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
281279
pub const MAX: Self = !Self::MIN;
282280
}
283281

@@ -2435,10 +2433,9 @@ macro_rules! uint_impl {
24352433
Basic usage:
24362434
24372435
```
2438-
#![feature(assoc_int_consts)]
24392436
", $Feature, "assert_eq!(", stringify!($SelfT), "::MIN, 0);", $EndFeature, "
24402437
```"),
2441-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
2438+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
24422439
pub const MIN: Self = 0;
24432440
}
24442441

@@ -2450,11 +2447,10 @@ Basic usage:
24502447
Basic usage:
24512448
24522449
```
2453-
#![feature(assoc_int_consts)]
24542450
", $Feature, "assert_eq!(", stringify!($SelfT), "::MAX, ", stringify!($MaxV), ");",
24552451
$EndFeature, "
24562452
```"),
2457-
#[unstable(feature = "assoc_int_consts", reason = "recently added", issue = "68490")]
2453+
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
24582454
pub const MAX: Self = !0;
24592455
}
24602456

src/libstd/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@
237237
#![feature(arbitrary_self_types)]
238238
#![feature(array_error_internals)]
239239
#![feature(asm)]
240-
#![feature(assoc_int_consts)]
241240
#![feature(associated_type_bounds)]
242241
#![feature(box_syntax)]
243242
#![feature(c_variadic)]

0 commit comments

Comments
 (0)