diff options
| author | bors <bors@rust-lang.org> | 2016-05-08 07:04:17 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-05-08 07:04:17 -0700 |
| commit | cae42a471c13eec8a6470d0845f46f1606d50742 (patch) | |
| tree | faffb306c666f3e4ff851eca16ea5baf85dcdea9 /src/libstd | |
| parent | 8e414e0e3f27d1917d11ee80de827698beb53891 (diff) | |
| parent | cc98f4cbb09d0165dcca18664d1fe10cb39a5dfa (diff) | |
| download | rust-cae42a471c13eec8a6470d0845f46f1606d50742.tar.gz rust-cae42a471c13eec8a6470d0845f46f1606d50742.zip | |
Auto merge of #33494 - Manishearth:rollup, r=Manishearth
Rollup of 8 pull requests - Successful merges: #33369, #33373, #33404, #33406, #33420, #33424, #33426, #33473 - Failed merges:
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/error.rs | 7 | ||||
| -rw-r--r-- | src/libstd/lib.rs | 1 | ||||
| -rw-r--r-- | src/libstd/num/mod.rs | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/src/libstd/error.rs b/src/libstd/error.rs index 35cd4a5ec52..d49d9764946 100644 --- a/src/libstd/error.rs +++ b/src/libstd/error.rs @@ -159,6 +159,13 @@ impl Error for num::ParseIntError { } } +#[unstable(feature = "try_from", issue = "33417")] +impl Error for num::TryFromIntError { + fn description(&self) -> &str { + self.__description() + } +} + #[stable(feature = "rust1", since = "1.0.0")] impl Error for num::ParseFloatError { fn description(&self) -> &str { diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index e14a31453d3..d4b40b844fc 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -270,6 +270,7 @@ #![feature(vec_push_all)] #![feature(zero_one)] #![feature(question_mark)] +#![feature(try_from)] // Issue# 30592: Systematically use alloc_system during stage0 since jemalloc // might be unavailable or disabled diff --git a/src/libstd/num/mod.rs b/src/libstd/num/mod.rs index 1886b4fdf59..d33df05acf2 100644 --- a/src/libstd/num/mod.rs +++ b/src/libstd/num/mod.rs @@ -19,7 +19,7 @@ #[stable(feature = "rust1", since = "1.0.0")] pub use core::num::{Zero, One}; #[stable(feature = "rust1", since = "1.0.0")] -pub use core::num::{FpCategory, ParseIntError, ParseFloatError}; +pub use core::num::{FpCategory, ParseIntError, ParseFloatError, TryFromIntError}; #[stable(feature = "rust1", since = "1.0.0")] pub use core::num::Wrapping; |
