Revert "Stabilize the TryFrom and TryInto traits"

This reverts commit e53a2a7274.
This commit is contained in:
Felix S. Klock II
2018-04-20 17:41:31 +02:00
parent aaefa947ac
commit d141fdc3bf
11 changed files with 28 additions and 27 deletions

View File

@@ -59,7 +59,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.
#[stable(feature = "try_from", since = "1.26.0")]
#[unstable(feature = "try_from", issue = "33417")]
#[derive(Debug, Copy, Clone)]
pub struct TryFromSliceError(());
@@ -148,7 +148,7 @@ macro_rules! array_impls {
}
}
#[stable(feature = "try_from", since = "1.26.0")]
#[unstable(feature = "try_from", issue = "33417")]
impl<'a, T> TryFrom<&'a [T]> for &'a [T; $N] {
type Error = TryFromSliceError;
@@ -162,7 +162,7 @@ macro_rules! array_impls {
}
}
#[stable(feature = "try_from", since = "1.26.0")]
#[unstable(feature = "try_from", issue = "33417")]
impl<'a, T> TryFrom<&'a mut [T]> for &'a mut [T; $N] {
type Error = TryFromSliceError;