Skip to content

Commit fc84777

Browse files
committed
Stabilize nonzero_min_max
1 parent c54c8cb commit fc84777

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/core/src/num/nonzero.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ macro_rules! nonzero_min_max_unsigned {
11521152
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
11531153
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MIN.get(), 1", stringify!($Int), ");")]
11541154
/// ```
1155-
#[unstable(feature = "nonzero_min_max", issue = "89065")]
1155+
#[stable(feature = "nonzero_min_max", since = "CURRENT_RUSTC_VERSION")]
11561156
pub const MIN: Self = Self::new(1).unwrap();
11571157

11581158
/// The largest value that can be represented by this non-zero
@@ -1167,7 +1167,7 @@ macro_rules! nonzero_min_max_unsigned {
11671167
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
11681168
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MAX.get(), ", stringify!($Int), "::MAX);")]
11691169
/// ```
1170-
#[unstable(feature = "nonzero_min_max", issue = "89065")]
1170+
#[stable(feature = "nonzero_min_max", since = "CURRENT_RUSTC_VERSION")]
11711171
pub const MAX: Self = Self::new(<$Int>::MAX).unwrap();
11721172
}
11731173
)+
@@ -1194,7 +1194,7 @@ macro_rules! nonzero_min_max_signed {
11941194
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
11951195
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MIN.get(), ", stringify!($Int), "::MIN);")]
11961196
/// ```
1197-
#[unstable(feature = "nonzero_min_max", issue = "89065")]
1197+
#[stable(feature = "nonzero_min_max", since = "CURRENT_RUSTC_VERSION")]
11981198
pub const MIN: Self = Self::new(<$Int>::MIN).unwrap();
11991199

12001200
/// The largest value that can be represented by this non-zero
@@ -1213,7 +1213,7 @@ macro_rules! nonzero_min_max_signed {
12131213
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
12141214
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MAX.get(), ", stringify!($Int), "::MAX);")]
12151215
/// ```
1216-
#[unstable(feature = "nonzero_min_max", issue = "89065")]
1216+
#[stable(feature = "nonzero_min_max", since = "CURRENT_RUSTC_VERSION")]
12171217
pub const MAX: Self = Self::new(<$Int>::MAX).unwrap();
12181218
}
12191219
)+

0 commit comments

Comments
 (0)