Skip to content

Commit c97ab23

Browse files
committed
isqrt: fix stability
1 parent 17dfb18 commit c97ab23

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

library/core/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@
178178
#![feature(ip)]
179179
#![feature(ip_bits)]
180180
#![feature(is_ascii_octdigit)]
181+
#![feature(isqrt)]
181182
#![feature(maybe_uninit_uninit_array)]
182183
#![feature(ptr_alignment_type)]
183184
#![feature(ptr_metadata)]

library/core/src/num/int_macros.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -906,10 +906,11 @@ macro_rules! int_impl {
906906
///
907907
/// Basic usage:
908908
/// ```
909+
/// #![feature(isqrt)]
909910
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".checked_isqrt(), Some(3));")]
910911
/// ```
911-
#[stable(feature = "isqrt", since = "1.73.0")]
912-
#[rustc_const_stable(feature = "isqrt", since = "1.73.0")]
912+
#[unstable(feature = "isqrt", issue = "none")]
913+
#[rustc_const_unstable(feature = "isqrt", issue = "none")]
913914
#[must_use = "this returns the result of the operation, \
914915
without modifying the original"]
915916
#[inline]
@@ -2094,10 +2095,11 @@ macro_rules! int_impl {
20942095
///
20952096
/// Basic usage:
20962097
/// ```
2098+
/// #![feature(isqrt)]
20972099
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".isqrt(), 3);")]
20982100
/// ```
2099-
#[stable(feature = "isqrt", since = "1.73.0")]
2100-
#[rustc_const_stable(feature = "isqrt", since = "1.73.0")]
2101+
#[unstable(feature = "isqrt", issue = "none")]
2102+
#[rustc_const_unstable(feature = "isqrt", issue = "none")]
21012103
#[must_use = "this returns the result of the operation, \
21022104
without modifying the original"]
21032105
#[inline]

library/core/src/num/uint_macros.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1985,10 +1985,11 @@ macro_rules! uint_impl {
19851985
///
19861986
/// Basic usage:
19871987
/// ```
1988+
/// #![feature(isqrt)]
19881989
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".isqrt(), 3);")]
19891990
/// ```
1990-
#[stable(feature = "isqrt", since = "1.73.0")]
1991-
#[rustc_const_stable(feature = "isqrt", since = "1.73.0")]
1991+
#[unstable(feature = "isqrt", issue = "none")]
1992+
#[rustc_const_unstable(feature = "isqrt", issue = "none")]
19921993
#[must_use = "this returns the result of the operation, \
19931994
without modifying the original"]
19941995
#[inline]

library/core/tests/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
#![feature(min_specialization)]
5757
#![feature(numfmt)]
5858
#![feature(num_midpoint)]
59+
#![feature(isqrt)]
5960
#![feature(step_trait)]
6061
#![feature(str_internals)]
6162
#![feature(std_internals)]

0 commit comments

Comments
 (0)