diff options
| author | Ethan Brierley <ethanboxx@gmail.com> | 2018-11-05 17:23:34 +0000 |
|---|---|---|
| committer | Ethan Brierley <ethanboxx@gmail.com> | 2018-11-05 17:23:34 +0000 |
| commit | 2d1cd9ae80f1c6f5c1925f52bd69344bf63610c7 (patch) | |
| tree | 26532552016e6aec1adc429ec84d8d0c50ef6c6c /src/libcore/num | |
| parent | 6cfc6033955dd2685dfa7baeec6f6bc3bfdfe2f1 (diff) | |
| download | rust-2d1cd9ae80f1c6f5c1925f52bd69344bf63610c7.tar.gz rust-2d1cd9ae80f1c6f5c1925f52bd69344bf63610c7.zip | |
Make `ParseIntError` and `IntErrorKind` fully public
Diffstat (limited to 'src/libcore/num')
| -rw-r--r-- | src/libcore/num/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index c6cbeea5a0e..fada8efbd21 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -4768,11 +4768,11 @@ fn from_str_radix<T: FromStrRadixHelper>(src: &str, radix: u32) -> Result<T, Par #[derive(Debug, Clone, PartialEq, Eq)] #[stable(feature = "rust1", since = "1.0.0")] pub struct ParseIntError { - kind: IntErrorKind, + pub kind: IntErrorKind, } #[derive(Debug, Clone, PartialEq, Eq)] -enum IntErrorKind { +pub enum IntErrorKind { Empty, InvalidDigit, Overflow, |
