update stabilization version numbers
This commit is contained in:
parent
6a20f7df57
commit
f6762c2035
7 changed files with 38 additions and 38 deletions
|
@ -140,7 +140,7 @@ impl char {
|
|||
/// assert_eq!(None, c);
|
||||
/// ```
|
||||
#[stable(feature = "assoc_char_funcs", since = "1.52.0")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "1.67.0")]
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub const fn from_u32(i: u32) -> Option<char> {
|
||||
|
@ -241,7 +241,7 @@ impl char {
|
|||
/// let _c = char::from_digit(1, 37);
|
||||
/// ```
|
||||
#[stable(feature = "assoc_char_funcs", since = "1.52.0")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "1.67.0")]
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub const fn from_digit(num: u32, radix: u32) -> Option<char> {
|
||||
|
@ -338,7 +338,7 @@ impl char {
|
|||
/// let _ = '1'.to_digit(37);
|
||||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
|
|
@ -110,7 +110,7 @@ pub fn decode_utf16<I: IntoIterator<Item = u16>>(iter: I) -> DecodeUtf16<I::Into
|
|||
|
||||
/// Converts a `u32` to a `char`. Use [`char::from_u32`] instead.
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "1.67.0")]
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub const fn from_u32(i: u32) -> Option<char> {
|
||||
|
@ -130,7 +130,7 @@ pub const unsafe fn from_u32_unchecked(i: u32) -> char {
|
|||
|
||||
/// Converts a digit in the given radix to a `char`. Use [`char::from_digit`] instead.
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_char_convert", since = "1.67.0")]
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub const fn from_digit(num: u32, radix: u32) -> Option<char> {
|
||||
|
|
|
@ -2290,8 +2290,8 @@ macro_rules! int_impl {
|
|||
/// ```
|
||||
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".ilog(5), 1);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_allow_const_fn_unstable(const_option)]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
|
@ -2313,8 +2313,8 @@ macro_rules! int_impl {
|
|||
/// ```
|
||||
#[doc = concat!("assert_eq!(2", stringify!($SelfT), ".ilog2(), 1);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_allow_const_fn_unstable(const_option)]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
|
@ -2335,8 +2335,8 @@ macro_rules! int_impl {
|
|||
/// ```
|
||||
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".ilog10(), 1);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_allow_const_fn_unstable(const_option)]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
|
@ -2360,8 +2360,8 @@ macro_rules! int_impl {
|
|||
/// ```
|
||||
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".checked_ilog(5), Some(1));")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
@ -2396,8 +2396,8 @@ macro_rules! int_impl {
|
|||
/// ```
|
||||
#[doc = concat!("assert_eq!(2", stringify!($SelfT), ".checked_ilog2(), Some(1));")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
@ -2420,8 +2420,8 @@ macro_rules! int_impl {
|
|||
/// ```
|
||||
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".checked_ilog10(), Some(1));")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
|
|
@ -462,8 +462,8 @@ macro_rules! nonzero_unsigned_operations {
|
|||
#[doc = concat!("assert_eq!(", stringify!($Ty), "::new(8).unwrap().ilog2(), 3);")]
|
||||
#[doc = concat!("assert_eq!(", stringify!($Ty), "::new(9).unwrap().ilog2(), 3);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
@ -486,8 +486,8 @@ macro_rules! nonzero_unsigned_operations {
|
|||
#[doc = concat!("assert_eq!(", stringify!($Ty), "::new(100).unwrap().ilog10(), 2);")]
|
||||
#[doc = concat!("assert_eq!(", stringify!($Ty), "::new(101).unwrap().ilog10(), 2);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
@ -1253,7 +1253,7 @@ macro_rules! nonzero_bits {
|
|||
///
|
||||
#[doc = concat!("assert_eq!(", stringify!($Ty), "::BITS, ", stringify!($Int), "::BITS);")]
|
||||
/// ```
|
||||
#[stable(feature = "nonzero_bits", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "nonzero_bits", since = "1.67.0")]
|
||||
pub const BITS: u32 = <$Int>::BITS;
|
||||
}
|
||||
)+
|
||||
|
|
|
@ -703,8 +703,8 @@ macro_rules! uint_impl {
|
|||
/// ```
|
||||
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".ilog(5), 1);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_allow_const_fn_unstable(const_option)]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
|
@ -726,8 +726,8 @@ macro_rules! uint_impl {
|
|||
/// ```
|
||||
#[doc = concat!("assert_eq!(2", stringify!($SelfT), ".ilog2(), 1);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_allow_const_fn_unstable(const_option)]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
|
@ -748,8 +748,8 @@ macro_rules! uint_impl {
|
|||
/// ```
|
||||
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".ilog10(), 1);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_allow_const_fn_unstable(const_option)]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
|
@ -773,8 +773,8 @@ macro_rules! uint_impl {
|
|||
/// ```
|
||||
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".checked_ilog(5), Some(1));")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
@ -809,8 +809,8 @@ macro_rules! uint_impl {
|
|||
/// ```
|
||||
#[doc = concat!("assert_eq!(2", stringify!($SelfT), ".checked_ilog2(), Some(1));")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
@ -831,8 +831,8 @@ macro_rules! uint_impl {
|
|||
/// ```
|
||||
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".checked_ilog10(), Some(1));")]
|
||||
/// ```
|
||||
#[stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "int_log", since = "1.67.0")]
|
||||
#[rustc_const_stable(feature = "int_log", since = "1.67.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue