@@ -80,14 +80,14 @@ pub struct ParseIntError {
80
80
/// }
81
81
/// # }
82
82
/// ```
83
- #[ stable( feature = "int_error_matching" , since = "1.54 .0" ) ]
83
+ #[ stable( feature = "int_error_matching" , since = "1.55 .0" ) ]
84
84
#[ derive( Debug , Clone , PartialEq , Eq ) ]
85
85
#[ non_exhaustive]
86
86
pub enum IntErrorKind {
87
87
/// Value being parsed is empty.
88
88
///
89
89
/// This variant will be constructed when parsing an empty string.
90
- #[ stable( feature = "int_error_matching" , since = "1.54 .0" ) ]
90
+ #[ stable( feature = "int_error_matching" , since = "1.55 .0" ) ]
91
91
Empty ,
92
92
/// Contains an invalid digit in its context.
93
93
///
@@ -96,25 +96,25 @@ pub enum IntErrorKind {
96
96
///
97
97
/// This variant is also constructed when a `+` or `-` is misplaced within a string
98
98
/// either on its own or in the middle of a number.
99
- #[ stable( feature = "int_error_matching" , since = "1.54 .0" ) ]
99
+ #[ stable( feature = "int_error_matching" , since = "1.55 .0" ) ]
100
100
InvalidDigit ,
101
101
/// Integer is too large to store in target integer type.
102
- #[ stable( feature = "int_error_matching" , since = "1.54 .0" ) ]
102
+ #[ stable( feature = "int_error_matching" , since = "1.55 .0" ) ]
103
103
PosOverflow ,
104
104
/// Integer is too small to store in target integer type.
105
- #[ stable( feature = "int_error_matching" , since = "1.54 .0" ) ]
105
+ #[ stable( feature = "int_error_matching" , since = "1.55 .0" ) ]
106
106
NegOverflow ,
107
107
/// Value was Zero
108
108
///
109
109
/// This variant will be emitted when the parsing string has a value of zero, which
110
110
/// would be illegal for non-zero types.
111
- #[ stable( feature = "int_error_matching" , since = "1.54 .0" ) ]
111
+ #[ stable( feature = "int_error_matching" , since = "1.55 .0" ) ]
112
112
Zero ,
113
113
}
114
114
115
115
impl ParseIntError {
116
116
/// Outputs the detailed cause of parsing an integer failing.
117
- #[ stable( feature = "int_error_matching" , since = "1.54 .0" ) ]
117
+ #[ stable( feature = "int_error_matching" , since = "1.55 .0" ) ]
118
118
pub fn kind ( & self ) -> & IntErrorKind {
119
119
& self . kind
120
120
}
0 commit comments