Skip to content

Commit 63b5ab2

Browse files
committed
Stabilize feature int_lowest_highest_one
1 parent c29effd commit 63b5ab2

4 files changed

Lines changed: 12 additions & 19 deletions

File tree

library/core/src/num/int_macros.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,13 @@ macro_rules! int_impl {
215215
/// # Examples
216216
///
217217
/// ```
218-
/// #![feature(int_lowest_highest_one)]
219-
///
220218
#[doc = concat!("assert_eq!(0b0_", stringify!($SelfT), ".highest_one(), None);")]
221219
#[doc = concat!("assert_eq!(0b1_", stringify!($SelfT), ".highest_one(), Some(0));")]
222220
#[doc = concat!("assert_eq!(0b1_0000_", stringify!($SelfT), ".highest_one(), Some(4));")]
223221
#[doc = concat!("assert_eq!(0b1_1111_", stringify!($SelfT), ".highest_one(), Some(4));")]
224222
/// ```
225-
#[unstable(feature = "int_lowest_highest_one", issue = "145203")]
223+
#[stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
224+
#[rustc_const_stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
226225
#[must_use = "this returns the result of the operation, \
227226
without modifying the original"]
228227
#[inline(always)]
@@ -236,14 +235,13 @@ macro_rules! int_impl {
236235
/// # Examples
237236
///
238237
/// ```
239-
/// #![feature(int_lowest_highest_one)]
240-
///
241238
#[doc = concat!("assert_eq!(0b0_", stringify!($SelfT), ".lowest_one(), None);")]
242239
#[doc = concat!("assert_eq!(0b1_", stringify!($SelfT), ".lowest_one(), Some(0));")]
243240
#[doc = concat!("assert_eq!(0b1_0000_", stringify!($SelfT), ".lowest_one(), Some(4));")]
244241
#[doc = concat!("assert_eq!(0b1_1111_", stringify!($SelfT), ".lowest_one(), Some(0));")]
245242
/// ```
246-
#[unstable(feature = "int_lowest_highest_one", issue = "145203")]
243+
#[stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
244+
#[rustc_const_stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
247245
#[must_use = "this returns the result of the operation, \
248246
without modifying the original"]
249247
#[inline(always)]

library/core/src/num/nonzero.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -713,8 +713,6 @@ macro_rules! nonzero_integer {
713713
/// # Examples
714714
///
715715
/// ```
716-
/// #![feature(int_lowest_highest_one)]
717-
///
718716
/// # use core::num::NonZero;
719717
/// # fn main() { test().unwrap(); }
720718
/// # fn test() -> Option<()> {
@@ -724,7 +722,8 @@ macro_rules! nonzero_integer {
724722
/// # Some(())
725723
/// # }
726724
/// ```
727-
#[unstable(feature = "int_lowest_highest_one", issue = "145203")]
725+
#[stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
726+
#[rustc_const_stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
728727
#[must_use = "this returns the result of the operation, \
729728
without modifying the original"]
730729
#[inline(always)]
@@ -737,8 +736,6 @@ macro_rules! nonzero_integer {
737736
/// # Examples
738737
///
739738
/// ```
740-
/// #![feature(int_lowest_highest_one)]
741-
///
742739
/// # use core::num::NonZero;
743740
/// # fn main() { test().unwrap(); }
744741
/// # fn test() -> Option<()> {
@@ -748,7 +745,8 @@ macro_rules! nonzero_integer {
748745
/// # Some(())
749746
/// # }
750747
/// ```
751-
#[unstable(feature = "int_lowest_highest_one", issue = "145203")]
748+
#[stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
749+
#[rustc_const_stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
752750
#[must_use = "this returns the result of the operation, \
753751
without modifying the original"]
754752
#[inline(always)]

library/core/src/num/uint_macros.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,14 +295,13 @@ macro_rules! uint_impl {
295295
/// # Examples
296296
///
297297
/// ```
298-
/// #![feature(int_lowest_highest_one)]
299-
///
300298
#[doc = concat!("assert_eq!(0b0_", stringify!($SelfT), ".highest_one(), None);")]
301299
#[doc = concat!("assert_eq!(0b1_", stringify!($SelfT), ".highest_one(), Some(0));")]
302300
#[doc = concat!("assert_eq!(0b1_0000_", stringify!($SelfT), ".highest_one(), Some(4));")]
303301
#[doc = concat!("assert_eq!(0b1_1111_", stringify!($SelfT), ".highest_one(), Some(4));")]
304302
/// ```
305-
#[unstable(feature = "int_lowest_highest_one", issue = "145203")]
303+
#[stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
304+
#[rustc_const_stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
306305
#[must_use = "this returns the result of the operation, \
307306
without modifying the original"]
308307
#[inline(always)]
@@ -319,14 +318,13 @@ macro_rules! uint_impl {
319318
/// # Examples
320319
///
321320
/// ```
322-
/// #![feature(int_lowest_highest_one)]
323-
///
324321
#[doc = concat!("assert_eq!(0b0_", stringify!($SelfT), ".lowest_one(), None);")]
325322
#[doc = concat!("assert_eq!(0b1_", stringify!($SelfT), ".lowest_one(), Some(0));")]
326323
#[doc = concat!("assert_eq!(0b1_0000_", stringify!($SelfT), ".lowest_one(), Some(4));")]
327324
#[doc = concat!("assert_eq!(0b1_1111_", stringify!($SelfT), ".lowest_one(), Some(0));")]
328325
/// ```
329-
#[unstable(feature = "int_lowest_highest_one", issue = "145203")]
326+
#[stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
327+
#[rustc_const_stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
330328
#[must_use = "this returns the result of the operation, \
331329
without modifying the original"]
332330
#[inline(always)]

library/coretests/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
#![feature(hasher_prefixfree_extras)]
6767
#![feature(hashmap_internals)]
6868
#![feature(int_from_ascii)]
69-
#![feature(int_lowest_highest_one)]
7069
#![feature(int_roundings)]
7170
#![feature(ip)]
7271
#![feature(is_ascii_octdigit)]

0 commit comments

Comments
 (0)