1
Fork 0

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

View file

@ -57,7 +57,7 @@ pub use nonzero::{NonZeroI128, NonZeroI16, NonZeroI32, NonZeroI64, NonZeroI8, No
#[stable(feature = "try_from", since = "1.34.0")] #[stable(feature = "try_from", since = "1.34.0")]
pub use error::TryFromIntError; 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; pub use error::IntErrorKind;
macro_rules! usize_isize_to_xe_bytes_doc { macro_rules! usize_isize_to_xe_bytes_doc {

View file

@ -22,7 +22,7 @@ pub use core::num::{NonZeroI128, NonZeroI16, NonZeroI32, NonZeroI64, NonZeroI8,
#[stable(feature = "nonzero", since = "1.28.0")] #[stable(feature = "nonzero", since = "1.28.0")]
pub use core::num::{NonZeroU128, NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU8, NonZeroUsize}; 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; pub use core::num::IntErrorKind;
#[cfg(test)] #[cfg(test)]