isqrt: fix stability

This commit is contained in:
Federico Stra 2023-09-28 11:15:43 +02:00
parent 17dfb18bd1
commit c97ab23141
4 changed files with 11 additions and 6 deletions

View File

@ -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)]

View File

@ -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]

View File

@ -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]

View File

@ -56,6 +56,7 @@
#![feature(min_specialization)]
#![feature(numfmt)]
#![feature(num_midpoint)]
#![feature(isqrt)]
#![feature(step_trait)]
#![feature(str_internals)]
#![feature(std_internals)]