Stabilize nonzero_min_max
This commit is contained in:
parent
c54c8cbac8
commit
fc8477798e
@ -1152,7 +1152,7 @@ impl $Ty {
|
|||||||
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
|
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
|
||||||
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MIN.get(), 1", stringify!($Int), ");")]
|
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MIN.get(), 1", stringify!($Int), ");")]
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "nonzero_min_max", issue = "89065")]
|
#[stable(feature = "nonzero_min_max", since = "CURRENT_RUSTC_VERSION")]
|
||||||
pub const MIN: Self = Self::new(1).unwrap();
|
pub const MIN: Self = Self::new(1).unwrap();
|
||||||
|
|
||||||
/// The largest value that can be represented by this non-zero
|
/// The largest value that can be represented by this non-zero
|
||||||
@ -1167,7 +1167,7 @@ impl $Ty {
|
|||||||
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
|
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
|
||||||
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MAX.get(), ", stringify!($Int), "::MAX);")]
|
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MAX.get(), ", stringify!($Int), "::MAX);")]
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "nonzero_min_max", issue = "89065")]
|
#[stable(feature = "nonzero_min_max", since = "CURRENT_RUSTC_VERSION")]
|
||||||
pub const MAX: Self = Self::new(<$Int>::MAX).unwrap();
|
pub const MAX: Self = Self::new(<$Int>::MAX).unwrap();
|
||||||
}
|
}
|
||||||
)+
|
)+
|
||||||
@ -1194,7 +1194,7 @@ impl $Ty {
|
|||||||
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
|
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
|
||||||
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MIN.get(), ", stringify!($Int), "::MIN);")]
|
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MIN.get(), ", stringify!($Int), "::MIN);")]
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "nonzero_min_max", issue = "89065")]
|
#[stable(feature = "nonzero_min_max", since = "CURRENT_RUSTC_VERSION")]
|
||||||
pub const MIN: Self = Self::new(<$Int>::MIN).unwrap();
|
pub const MIN: Self = Self::new(<$Int>::MIN).unwrap();
|
||||||
|
|
||||||
/// The largest value that can be represented by this non-zero
|
/// The largest value that can be represented by this non-zero
|
||||||
@ -1213,7 +1213,7 @@ impl $Ty {
|
|||||||
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
|
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
|
||||||
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MAX.get(), ", stringify!($Int), "::MAX);")]
|
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MAX.get(), ", stringify!($Int), "::MAX);")]
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "nonzero_min_max", issue = "89065")]
|
#[stable(feature = "nonzero_min_max", since = "CURRENT_RUSTC_VERSION")]
|
||||||
pub const MAX: Self = Self::new(<$Int>::MAX).unwrap();
|
pub const MAX: Self = Self::new(<$Int>::MAX).unwrap();
|
||||||
}
|
}
|
||||||
)+
|
)+
|
||||||
|
Loading…
Reference in New Issue
Block a user