Skip to content

Commit d2cfe48

Browse files
committed
remove feature gate
1 parent f34ba77 commit d2cfe48

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

library/core/src/num/uint_macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,6 @@ macro_rules! uint_impl {
850850
/// # Examples
851851
///
852852
/// ```
853-
/// #![feature(unsigned_signed_diff)]
854853
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".checked_signed_diff(2), Some(8));")]
855854
#[doc = concat!("assert_eq!(2", stringify!($SelfT), ".checked_signed_diff(10), Some(-8));")]
856855
#[doc = concat!(
@@ -888,7 +887,8 @@ macro_rules! uint_impl {
888887
"::MAX), Some(0));"
889888
)]
890889
/// ```
891-
#[unstable(feature = "unsigned_signed_diff", issue = "126041")]
890+
#[stable(feature = "unsigned_signed_diff", since = "CURRENT_RUSTC_VERSION")]
891+
#[rustc_const_stable(feature = "unsigned_signed_diff", since = "CURRENT_RUSTC_VERSION")]
892892
#[inline]
893893
pub const fn checked_signed_diff(self, rhs: Self) -> Option<$SignedT> {
894894
let res = self.wrapping_sub(rhs) as $SignedT;

library/std/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@
319319
#![feature(try_blocks)]
320320
#![feature(try_trait_v2)]
321321
#![feature(type_alias_impl_trait)]
322-
#![feature(unsigned_signed_diff)]
323322
// tidy-alphabetical-end
324323
//
325324
// Library features (core):

0 commit comments

Comments
 (0)