diff options
| author | Jakub Kądziołka <kuba@kadziolka.net> | 2019-04-23 00:15:43 +0200 |
|---|---|---|
| committer | Jakub Kądziołka <kuba@kadziolka.net> | 2019-04-23 00:15:43 +0200 |
| commit | 7af0fccc88127619ec7e0fa695437525678db0b2 (patch) | |
| tree | 76d2b4d07b6f9f4910158e77163602f266c471d1 | |
| parent | 6d599337fa7047307ba72786bbabe6b9c9e4daac (diff) | |
| download | rust-7af0fccc88127619ec7e0fa695437525678db0b2.tar.gz rust-7af0fccc88127619ec7e0fa695437525678db0b2.zip | |
Reexport IntErrorKind in std
| -rw-r--r-- | src/libstd/lib.rs | 1 | ||||
| -rw-r--r-- | src/libstd/num.rs | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 62bc1991cc9..167c1f944d0 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -268,6 +268,7 @@ #![feature(hash_raw_entry)] #![feature(hashmap_internals)] #![feature(int_error_internals)] +#![feature(int_error_matching)] #![feature(integer_atomics)] #![feature(lang_items)] #![feature(libc)] diff --git a/src/libstd/num.rs b/src/libstd/num.rs index d67d0b55a79..2a2ca0b5237 100644 --- a/src/libstd/num.rs +++ b/src/libstd/num.rs @@ -16,6 +16,12 @@ pub use core::num::{NonZeroU8, NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU128, #[stable(feature = "signed_nonzero", since = "1.34.0")] pub use core::num::{NonZeroI8, NonZeroI16, NonZeroI32, NonZeroI64, NonZeroI128, NonZeroIsize}; +#[unstable(feature = "int_error_matching", + reason = "it can be useful to match errors when making error messages \ + for integer parsing", + issue = "22639")] +pub use core::num::IntErrorKind; + #[cfg(test)] use crate::fmt; #[cfg(test)] use crate::ops::{Add, Sub, Mul, Div, Rem}; |
