postpone stabilizaton by one release

This commit is contained in:
Ethan Brierley 2021-06-22 10:20:56 +01:00
parent 85b06e9c01
commit 52a6885c50
3 changed files with 9 additions and 9 deletions

View File

@ -80,14 +80,14 @@ pub struct ParseIntError {
/// }
/// # }
/// ```
#[stable(feature = "int_error_matching", since = "1.54.0")]
#[stable(feature = "int_error_matching", since = "1.55.0")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum IntErrorKind {
/// Value being parsed is empty.
///
/// This variant will be constructed when parsing an empty string.
#[stable(feature = "int_error_matching", since = "1.54.0")]
#[stable(feature = "int_error_matching", since = "1.55.0")]
Empty,
/// Contains an invalid digit in its context.
///
@ -96,25 +96,25 @@ pub enum IntErrorKind {
///
/// This variant is also constructed when a `+` or `-` is misplaced within a string
/// either on its own or in the middle of a number.
#[stable(feature = "int_error_matching", since = "1.54.0")]
#[stable(feature = "int_error_matching", since = "1.55.0")]
InvalidDigit,
/// Integer is too large to store in target integer type.
#[stable(feature = "int_error_matching", since = "1.54.0")]
#[stable(feature = "int_error_matching", since = "1.55.0")]
PosOverflow,
/// Integer is too small to store in target integer type.
#[stable(feature = "int_error_matching", since = "1.54.0")]
#[stable(feature = "int_error_matching", since = "1.55.0")]
NegOverflow,
/// Value was Zero
///
/// This variant will be emitted when the parsing string has a value of zero, which
/// would be illegal for non-zero types.
#[stable(feature = "int_error_matching", since = "1.54.0")]
#[stable(feature = "int_error_matching", since = "1.55.0")]
Zero,
}
impl ParseIntError {
/// Outputs the detailed cause of parsing an integer failing.
#[stable(feature = "int_error_matching", since = "1.54.0")]
#[stable(feature = "int_error_matching", since = "1.55.0")]
pub fn kind(&self) -> &IntErrorKind {
&self.kind
}

View File

@ -57,7 +57,7 @@ macro_rules! unlikely {
#[stable(feature = "try_from", since = "1.34.0")]
pub use error::TryFromIntError;
#[stable(feature = "int_error_matching", since = "1.54.0")]
#[stable(feature = "int_error_matching", since = "1.55.0")]
pub use error::IntErrorKind;
macro_rules! usize_isize_to_xe_bytes_doc {

View File

@ -22,7 +22,7 @@
#[stable(feature = "nonzero", since = "1.28.0")]
pub use core::num::{NonZeroU128, NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU8, NonZeroUsize};
#[stable(feature = "int_error_matching", since = "1.54.0")]
#[stable(feature = "int_error_matching", since = "1.55.0")]
pub use core::num::IntErrorKind;
#[cfg(test)]