1
Fork 0

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)]
#![feature(ip_bits)] #![feature(ip_bits)]
#![feature(is_ascii_octdigit)] #![feature(is_ascii_octdigit)]
#![feature(isqrt)]
#![feature(maybe_uninit_uninit_array)] #![feature(maybe_uninit_uninit_array)]
#![feature(ptr_alignment_type)] #![feature(ptr_alignment_type)]
#![feature(ptr_metadata)] #![feature(ptr_metadata)]

View file

@ -906,10 +906,11 @@ macro_rules! int_impl {
/// ///
/// Basic usage: /// Basic usage:
/// ``` /// ```
/// #![feature(isqrt)]
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".checked_isqrt(), Some(3));")] #[doc = concat!("assert_eq!(10", stringify!($SelfT), ".checked_isqrt(), Some(3));")]
/// ``` /// ```
#[stable(feature = "isqrt", since = "1.73.0")] #[unstable(feature = "isqrt", issue = "none")]
#[rustc_const_stable(feature = "isqrt", since = "1.73.0")] #[rustc_const_unstable(feature = "isqrt", issue = "none")]
#[must_use = "this returns the result of the operation, \ #[must_use = "this returns the result of the operation, \
without modifying the original"] without modifying the original"]
#[inline] #[inline]
@ -2094,10 +2095,11 @@ macro_rules! int_impl {
/// ///
/// Basic usage: /// Basic usage:
/// ``` /// ```
/// #![feature(isqrt)]
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".isqrt(), 3);")] #[doc = concat!("assert_eq!(10", stringify!($SelfT), ".isqrt(), 3);")]
/// ``` /// ```
#[stable(feature = "isqrt", since = "1.73.0")] #[unstable(feature = "isqrt", issue = "none")]
#[rustc_const_stable(feature = "isqrt", since = "1.73.0")] #[rustc_const_unstable(feature = "isqrt", issue = "none")]
#[must_use = "this returns the result of the operation, \ #[must_use = "this returns the result of the operation, \
without modifying the original"] without modifying the original"]
#[inline] #[inline]

View file

@ -1985,10 +1985,11 @@ macro_rules! uint_impl {
/// ///
/// Basic usage: /// Basic usage:
/// ``` /// ```
/// #![feature(isqrt)]
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".isqrt(), 3);")] #[doc = concat!("assert_eq!(10", stringify!($SelfT), ".isqrt(), 3);")]
/// ``` /// ```
#[stable(feature = "isqrt", since = "1.73.0")] #[unstable(feature = "isqrt", issue = "none")]
#[rustc_const_stable(feature = "isqrt", since = "1.73.0")] #[rustc_const_unstable(feature = "isqrt", issue = "none")]
#[must_use = "this returns the result of the operation, \ #[must_use = "this returns the result of the operation, \
without modifying the original"] without modifying the original"]
#[inline] #[inline]

View file

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