Skip to content

Commit 7af0fcc

Browse files
committed
Reexport IntErrorKind in std
1 parent 6d59933 commit 7af0fcc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/libstd/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@
268268
#![feature(hash_raw_entry)]
269269
#![feature(hashmap_internals)]
270270
#![feature(int_error_internals)]
271+
#![feature(int_error_matching)]
271272
#![feature(integer_atomics)]
272273
#![feature(lang_items)]
273274
#![feature(libc)]

src/libstd/num.rs

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ pub use core::num::{NonZeroU8, NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU128,
1616
#[stable(feature = "signed_nonzero", since = "1.34.0")]
1717
pub use core::num::{NonZeroI8, NonZeroI16, NonZeroI32, NonZeroI64, NonZeroI128, NonZeroIsize};
1818

19+
#[unstable(feature = "int_error_matching",
20+
reason = "it can be useful to match errors when making error messages \
21+
for integer parsing",
22+
issue = "22639")]
23+
pub use core::num::IntErrorKind;
24+
1925
#[cfg(test)] use crate::fmt;
2026
#[cfg(test)] use crate::ops::{Add, Sub, Mul, Div, Rem};
2127

0 commit comments

Comments
 (0)