Skip to content

Commit a69f989

Browse files
committed
Stabilize feature isolate_most_least_significant_one
1 parent b6100cc commit a69f989

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
@@ -173,14 +173,13 @@ macro_rules! int_impl {
173173
/// # Examples
174174
///
175175
/// ```
176-
/// #![feature(isolate_most_least_significant_one)]
177-
///
178176
#[doc = concat!("let n: ", stringify!($SelfT), " = 0b_01100100;")]
179177
///
180178
/// assert_eq!(n.isolate_highest_one(), 0b_01000000);
181179
#[doc = concat!("assert_eq!(0_", stringify!($SelfT), ".isolate_highest_one(), 0);")]
182180
/// ```
183-
#[unstable(feature = "isolate_most_least_significant_one", issue = "136909")]
181+
#[stable(feature = "isolate_most_least_significant_one", since = "CURRENT_RUSTC_VERSION")]
182+
#[rustc_const_stable(feature = "isolate_most_least_significant_one", since = "CURRENT_RUSTC_VERSION")]
184183
#[must_use = "this returns the result of the operation, \
185184
without modifying the original"]
186185
#[inline(always)]
@@ -194,14 +193,13 @@ macro_rules! int_impl {
194193
/// # Examples
195194
///
196195
/// ```
197-
/// #![feature(isolate_most_least_significant_one)]
198-
///
199196
#[doc = concat!("let n: ", stringify!($SelfT), " = 0b_01100100;")]
200197
///
201198
/// assert_eq!(n.isolate_lowest_one(), 0b_00000100);
202199
#[doc = concat!("assert_eq!(0_", stringify!($SelfT), ".isolate_lowest_one(), 0);")]
203200
/// ```
204-
#[unstable(feature = "isolate_most_least_significant_one", issue = "136909")]
201+
#[stable(feature = "isolate_most_least_significant_one", since = "CURRENT_RUSTC_VERSION")]
202+
#[rustc_const_stable(feature = "isolate_most_least_significant_one", since = "CURRENT_RUSTC_VERSION")]
205203
#[must_use = "this returns the result of the operation, \
206204
without modifying the original"]
207205
#[inline(always)]

library/core/src/num/nonzero.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,6 @@ macro_rules! nonzero_integer {
650650
/// # Example
651651
///
652652
/// ```
653-
/// #![feature(isolate_most_least_significant_one)]
654-
///
655653
/// # use core::num::NonZero;
656654
/// # fn main() { test().unwrap(); }
657655
/// # fn test() -> Option<()> {
@@ -662,7 +660,8 @@ macro_rules! nonzero_integer {
662660
/// # Some(())
663661
/// # }
664662
/// ```
665-
#[unstable(feature = "isolate_most_least_significant_one", issue = "136909")]
663+
#[stable(feature = "isolate_most_least_significant_one", since = "CURRENT_RUSTC_VERSION")]
664+
#[rustc_const_stable(feature = "isolate_most_least_significant_one", since = "CURRENT_RUSTC_VERSION")]
666665
#[must_use = "this returns the result of the operation, \
667666
without modifying the original"]
668667
#[inline(always)]
@@ -683,8 +682,6 @@ macro_rules! nonzero_integer {
683682
/// # Example
684683
///
685684
/// ```
686-
/// #![feature(isolate_most_least_significant_one)]
687-
///
688685
/// # use core::num::NonZero;
689686
/// # fn main() { test().unwrap(); }
690687
/// # fn test() -> Option<()> {
@@ -695,7 +692,8 @@ macro_rules! nonzero_integer {
695692
/// # Some(())
696693
/// # }
697694
/// ```
698-
#[unstable(feature = "isolate_most_least_significant_one", issue = "136909")]
695+
#[stable(feature = "isolate_most_least_significant_one", since = "CURRENT_RUSTC_VERSION")]
696+
#[rustc_const_stable(feature = "isolate_most_least_significant_one", since = "CURRENT_RUSTC_VERSION")]
699697
#[must_use = "this returns the result of the operation, \
700698
without modifying the original"]
701699
#[inline(always)]

library/core/src/num/uint_macros.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,14 +253,13 @@ macro_rules! uint_impl {
253253
/// # Examples
254254
///
255255
/// ```
256-
/// #![feature(isolate_most_least_significant_one)]
257-
///
258256
#[doc = concat!("let n: ", stringify!($SelfT), " = 0b_01100100;")]
259257
///
260258
/// assert_eq!(n.isolate_highest_one(), 0b_01000000);
261259
#[doc = concat!("assert_eq!(0_", stringify!($SelfT), ".isolate_highest_one(), 0);")]
262260
/// ```
263-
#[unstable(feature = "isolate_most_least_significant_one", issue = "136909")]
261+
#[stable(feature = "isolate_most_least_significant_one", since = "CURRENT_RUSTC_VERSION")]
262+
#[rustc_const_stable(feature = "isolate_most_least_significant_one", since = "CURRENT_RUSTC_VERSION")]
264263
#[must_use = "this returns the result of the operation, \
265264
without modifying the original"]
266265
#[inline(always)]
@@ -274,14 +273,13 @@ macro_rules! uint_impl {
274273
/// # Examples
275274
///
276275
/// ```
277-
/// #![feature(isolate_most_least_significant_one)]
278-
///
279276
#[doc = concat!("let n: ", stringify!($SelfT), " = 0b_01100100;")]
280277
///
281278
/// assert_eq!(n.isolate_lowest_one(), 0b_00000100);
282279
#[doc = concat!("assert_eq!(0_", stringify!($SelfT), ".isolate_lowest_one(), 0);")]
283280
/// ```
284-
#[unstable(feature = "isolate_most_least_significant_one", issue = "136909")]
281+
#[stable(feature = "isolate_most_least_significant_one", since = "CURRENT_RUSTC_VERSION")]
282+
#[rustc_const_stable(feature = "isolate_most_least_significant_one", since = "CURRENT_RUSTC_VERSION")]
285283
#[must_use = "this returns the result of the operation, \
286284
without modifying the original"]
287285
#[inline(always)]

library/coretests/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
#![feature(int_roundings)]
7171
#![feature(ip)]
7272
#![feature(is_ascii_octdigit)]
73-
#![feature(isolate_most_least_significant_one)]
7473
#![feature(iter_advance_by)]
7574
#![feature(iter_array_chunks)]
7675
#![feature(iter_collect_into)]

0 commit comments

Comments
 (0)