1
Fork 0

Rollup merge of #131391 - ChaiTRex:isqrt, r=scottmcm,tgross35

Stabilize `isqrt` feature

Stabilizes the `isqrt` feature. FCP is incomplete.

Closes #116226
This commit is contained in:
Matthias Krüger 2024-10-28 12:14:57 +01:00 committed by GitHub
commit 81d885b933
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 100 additions and 108 deletions

View file

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