1
Fork 0

Stabilize TryFrom and TryInto

This commit is contained in:
Simon Sapin 2019-02-08 15:00:47 +01:00
parent 2f7120397f
commit c80a8f51dc
14 changed files with 30 additions and 38 deletions

View file

@ -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`"