diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2019-02-08 15:00:47 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2019-02-13 18:00:18 +0100 |
| commit | c80a8f51dcdc90dd8a5234f3bef6160814eee5df (patch) | |
| tree | 11ae1b5d7e96a0e76aa7ad135f5a827bd15ed226 /src/libstd | |
| parent | 2f7120397f5178fd3b389c2551a03991f3f4ee31 (diff) | |
| download | rust-c80a8f51dcdc90dd8a5234f3bef6160814eee5df.tar.gz rust-c80a8f51dcdc90dd8a5234f3bef6160814eee5df.zip | |
Stabilize TryFrom and TryInto
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/error.rs | 6 | ||||
| -rw-r--r-- | src/libstd/lib.rs | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/libstd/error.rs b/src/libstd/error.rs index 6348b411a4c..cd930240465 100644 --- a/src/libstd/error.rs +++ b/src/libstd/error.rs @@ -466,14 +466,14 @@ impl Error for num::ParseIntError { } } -#[unstable(feature = "try_from", issue = "33417")] +#[stable(feature = "try_from", since = "1.34.0")] impl Error for num::TryFromIntError { fn description(&self) -> &str { self.__description() } } -#[unstable(feature = "try_from", issue = "33417")] +#[stable(feature = "try_from", since = "1.34.0")] impl Error for array::TryFromSliceError { fn description(&self) -> &str { self.__description() @@ -548,7 +548,7 @@ impl Error for cell::BorrowMutError { } } -#[unstable(feature = "try_from", issue = "33417")] +#[stable(feature = "try_from", since = "1.34.0")] impl Error for char::CharTryFromError { fn description(&self) -> &str { "converted integer out of range for `char`" diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index e57cb2ce5fd..47d2f113245 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -281,7 +281,6 @@ #![feature(rustc_private)] #![feature(thread_local)] #![feature(toowned_clone_into)] -#![feature(try_from)] #![feature(try_reserve)] #![feature(unboxed_closures)] #![feature(untagged_unions)] |
