isqrt: fix stability
This commit is contained in:
@@ -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)]
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
@@ -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)]
|
||||||
|
|||||||
Reference in New Issue
Block a user