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/libcore/array.rs | |
| parent | 2f7120397f5178fd3b389c2551a03991f3f4ee31 (diff) | |
| download | rust-c80a8f51dcdc90dd8a5234f3bef6160814eee5df.tar.gz rust-c80a8f51dcdc90dd8a5234f3bef6160814eee5df.zip | |
Stabilize TryFrom and TryInto
Diffstat (limited to 'src/libcore/array.rs')
| -rw-r--r-- | src/libcore/array.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/array.rs b/src/libcore/array.rs index 3a27a39af4a..9c6ecc43502 100644 --- a/src/libcore/array.rs +++ b/src/libcore/array.rs @@ -49,7 +49,7 @@ unsafe impl<T, A: Unsize<[T]>> FixedSizeArray<T> for A { } /// The error type returned when a conversion from a slice to an array fails. -#[unstable(feature = "try_from", issue = "33417")] +#[stable(feature = "try_from", since = "1.34.0")] #[derive(Debug, Copy, Clone)] pub struct TryFromSliceError(()); @@ -138,7 +138,7 @@ macro_rules! array_impls { } } - #[unstable(feature = "try_from", issue = "33417")] + #[stable(feature = "try_from", since = "1.34.0")] impl<'a, T> TryFrom<&'a [T]> for [T; $N] where T: Copy { type Error = TryFromSliceError; @@ -147,7 +147,7 @@ macro_rules! array_impls { } } - #[unstable(feature = "try_from", issue = "33417")] + #[stable(feature = "try_from", since = "1.34.0")] impl<'a, T> TryFrom<&'a [T]> for &'a [T; $N] { type Error = TryFromSliceError; @@ -161,7 +161,7 @@ macro_rules! array_impls { } } - #[unstable(feature = "try_from", issue = "33417")] + #[stable(feature = "try_from", since = "1.34.0")] impl<'a, T> TryFrom<&'a mut [T]> for &'a mut [T; $N] { type Error = TryFromSliceError; |
