Skip to content

Commit adb5efa

Browse files
Rollup merge of rust-lang#155147 - sorairolake:stabilize-int-lowest-highest-one, r=jhpratt
Stabilize feature `int_lowest_highest_one` Tracking issue: rust-lang#145203 FCP is finished in rust-lang#145203 (comment) Closes rust-lang#145203 @rustbot modify labels: +T-libs-api
2 parents 6414e75 + 63b5ab2 commit adb5efa

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
@@ -213,14 +213,13 @@ macro_rules! int_impl {
213213
/// # Examples
214214
///
215215
/// ```
216-
/// #![feature(int_lowest_highest_one)]
217-
///
218216
#[doc = concat!("assert_eq!(0b0_", stringify!($SelfT), ".highest_one(), None);")]
219217
#[doc = concat!("assert_eq!(0b1_", stringify!($SelfT), ".highest_one(), Some(0));")]
220218
#[doc = concat!("assert_eq!(0b1_0000_", stringify!($SelfT), ".highest_one(), Some(4));")]
221219
#[doc = concat!("assert_eq!(0b1_1111_", stringify!($SelfT), ".highest_one(), Some(4));")]
222220
/// ```
223-
#[unstable(feature = "int_lowest_highest_one", issue = "145203")]
221+
#[stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
222+
#[rustc_const_stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
224223
#[must_use = "this returns the result of the operation, \
225224
without modifying the original"]
226225
#[inline(always)]
@@ -234,14 +233,13 @@ macro_rules! int_impl {
234233
/// # Examples
235234
///
236235
/// ```
237-
/// #![feature(int_lowest_highest_one)]
238-
///
239236
#[doc = concat!("assert_eq!(0b0_", stringify!($SelfT), ".lowest_one(), None);")]
240237
#[doc = concat!("assert_eq!(0b1_", stringify!($SelfT), ".lowest_one(), Some(0));")]
241238
#[doc = concat!("assert_eq!(0b1_0000_", stringify!($SelfT), ".lowest_one(), Some(4));")]
242239
#[doc = concat!("assert_eq!(0b1_1111_", stringify!($SelfT), ".lowest_one(), Some(0));")]
243240
/// ```
244-
#[unstable(feature = "int_lowest_highest_one", issue = "145203")]
241+
#[stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
242+
#[rustc_const_stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
245243
#[must_use = "this returns the result of the operation, \
246244
without modifying the original"]
247245
#[inline(always)]

library/core/src/num/nonzero.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,6 @@ macro_rules! nonzero_integer {
711711
/// # Examples
712712
///
713713
/// ```
714-
/// #![feature(int_lowest_highest_one)]
715-
///
716714
/// # use core::num::NonZero;
717715
/// # fn main() { test().unwrap(); }
718716
/// # fn test() -> Option<()> {
@@ -722,7 +720,8 @@ macro_rules! nonzero_integer {
722720
/// # Some(())
723721
/// # }
724722
/// ```
725-
#[unstable(feature = "int_lowest_highest_one", issue = "145203")]
723+
#[stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
724+
#[rustc_const_stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
726725
#[must_use = "this returns the result of the operation, \
727726
without modifying the original"]
728727
#[inline(always)]
@@ -735,8 +734,6 @@ macro_rules! nonzero_integer {
735734
/// # Examples
736735
///
737736
/// ```
738-
/// #![feature(int_lowest_highest_one)]
739-
///
740737
/// # use core::num::NonZero;
741738
/// # fn main() { test().unwrap(); }
742739
/// # fn test() -> Option<()> {
@@ -746,7 +743,8 @@ macro_rules! nonzero_integer {
746743
/// # Some(())
747744
/// # }
748745
/// ```
749-
#[unstable(feature = "int_lowest_highest_one", issue = "145203")]
746+
#[stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
747+
#[rustc_const_stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
750748
#[must_use = "this returns the result of the operation, \
751749
without modifying the original"]
752750
#[inline(always)]

library/core/src/num/uint_macros.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -292,14 +292,13 @@ macro_rules! uint_impl {
292292
/// # Examples
293293
///
294294
/// ```
295-
/// #![feature(int_lowest_highest_one)]
296-
///
297295
#[doc = concat!("assert_eq!(0b0_", stringify!($SelfT), ".highest_one(), None);")]
298296
#[doc = concat!("assert_eq!(0b1_", stringify!($SelfT), ".highest_one(), Some(0));")]
299297
#[doc = concat!("assert_eq!(0b1_0000_", stringify!($SelfT), ".highest_one(), Some(4));")]
300298
#[doc = concat!("assert_eq!(0b1_1111_", stringify!($SelfT), ".highest_one(), Some(4));")]
301299
/// ```
302-
#[unstable(feature = "int_lowest_highest_one", issue = "145203")]
300+
#[stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
301+
#[rustc_const_stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
303302
#[must_use = "this returns the result of the operation, \
304303
without modifying the original"]
305304
#[inline(always)]
@@ -316,14 +315,13 @@ macro_rules! uint_impl {
316315
/// # Examples
317316
///
318317
/// ```
319-
/// #![feature(int_lowest_highest_one)]
320-
///
321318
#[doc = concat!("assert_eq!(0b0_", stringify!($SelfT), ".lowest_one(), None);")]
322319
#[doc = concat!("assert_eq!(0b1_", stringify!($SelfT), ".lowest_one(), Some(0));")]
323320
#[doc = concat!("assert_eq!(0b1_0000_", stringify!($SelfT), ".lowest_one(), Some(4));")]
324321
#[doc = concat!("assert_eq!(0b1_1111_", stringify!($SelfT), ".lowest_one(), Some(0));")]
325322
/// ```
326-
#[unstable(feature = "int_lowest_highest_one", issue = "145203")]
323+
#[stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
324+
#[rustc_const_stable(feature = "int_lowest_highest_one", since = "CURRENT_RUSTC_VERSION")]
327325
#[must_use = "this returns the result of the operation, \
328326
without modifying the original"]
329327
#[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)