Make ParseIntError and IntErrorKind fully public

This commit is contained in:
Ethan Brierley
2018-11-05 17:23:34 +00:00
parent 6cfc603395
commit 2d1cd9ae80

View File

@@ -4768,11 +4768,11 @@ fn from_str_radix<T: FromStrRadixHelper>(src: &str, radix: u32) -> Result<T, Par
#[derive(Debug, Clone, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
pub struct ParseIntError { pub struct ParseIntError {
kind: IntErrorKind, pub kind: IntErrorKind,
} }
#[derive(Debug, Clone, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
enum IntErrorKind { pub enum IntErrorKind {
Empty, Empty,
InvalidDigit, InvalidDigit,
Overflow, Overflow,