isqrt: fix stability
This commit is contained in:
parent
17dfb18bd1
commit
c97ab23141
@ -178,6 +178,7 @@
|
||||
#![feature(ip)]
|
||||
#![feature(ip_bits)]
|
||||
#![feature(is_ascii_octdigit)]
|
||||
#![feature(isqrt)]
|
||||
#![feature(maybe_uninit_uninit_array)]
|
||||
#![feature(ptr_alignment_type)]
|
||||
#![feature(ptr_metadata)]
|
||||
|
@ -906,10 +906,11 @@ pub const fn checked_pow(self, mut exp: u32) -> Option<Self> {
|
||||
///
|
||||
/// Basic usage:
|
||||
/// ```
|
||||
/// #![feature(isqrt)]
|
||||
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".checked_isqrt(), Some(3));")]
|
||||
/// ```
|
||||
#[stable(feature = "isqrt", since = "1.73.0")]
|
||||
#[rustc_const_stable(feature = "isqrt", since = "1.73.0")]
|
||||
#[unstable(feature = "isqrt", issue = "none")]
|
||||
#[rustc_const_unstable(feature = "isqrt", issue = "none")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
@ -2094,10 +2095,11 @@ pub const fn pow(self, mut exp: u32) -> Self {
|
||||
///
|
||||
/// Basic usage:
|
||||
/// ```
|
||||
/// #![feature(isqrt)]
|
||||
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".isqrt(), 3);")]
|
||||
/// ```
|
||||
#[stable(feature = "isqrt", since = "1.73.0")]
|
||||
#[rustc_const_stable(feature = "isqrt", since = "1.73.0")]
|
||||
#[unstable(feature = "isqrt", issue = "none")]
|
||||
#[rustc_const_unstable(feature = "isqrt", issue = "none")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
@ -1985,10 +1985,11 @@ pub const fn pow(self, mut exp: u32) -> Self {
|
||||
///
|
||||
/// Basic usage:
|
||||
/// ```
|
||||
/// #![feature(isqrt)]
|
||||
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".isqrt(), 3);")]
|
||||
/// ```
|
||||
#[stable(feature = "isqrt", since = "1.73.0")]
|
||||
#[rustc_const_stable(feature = "isqrt", since = "1.73.0")]
|
||||
#[unstable(feature = "isqrt", issue = "none")]
|
||||
#[rustc_const_unstable(feature = "isqrt", issue = "none")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
@ -56,6 +56,7 @@
|
||||
#![feature(min_specialization)]
|
||||
#![feature(numfmt)]
|
||||
#![feature(num_midpoint)]
|
||||
#![feature(isqrt)]
|
||||
#![feature(step_trait)]
|
||||
#![feature(str_internals)]
|
||||
#![feature(std_internals)]
|
||||
|
Loading…
Reference in New Issue
Block a user