Rollup merge of #69538 - JohnTitor:boxed-slice-try-from, r=Centril

Stabilize `boxed_slice_try_from`

Closes #69202
This commit is contained in:
Mazdak Farrokhzad
2020-02-28 17:17:33 +01:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -825,7 +825,7 @@ fn from(s: Box<str>) -> Self {
}
}
#[unstable(feature = "boxed_slice_try_from", issue = "none")]
#[stable(feature = "boxed_slice_try_from", since = "1.43.0")]
impl<T, const N: usize> TryFrom<Box<[T]>> for Box<[T; N]>
where
[T; N]: LengthAtMost32,
+1 -1
View File
@@ -1453,7 +1453,7 @@ fn from(mut v: Vec<T>) -> Rc<[T]> {
}
}
#[unstable(feature = "boxed_slice_try_from", issue = "none")]
#[stable(feature = "boxed_slice_try_from", since = "1.43.0")]
impl<T, const N: usize> TryFrom<Rc<[T]>> for Rc<[T; N]>
where
[T; N]: LengthAtMost32,
+1 -1
View File
@@ -2002,7 +2002,7 @@ fn from(mut v: Vec<T>) -> Arc<[T]> {
}
}
#[unstable(feature = "boxed_slice_try_from", issue = "none")]
#[stable(feature = "boxed_slice_try_from", since = "1.43.0")]
impl<T, const N: usize> TryFrom<Arc<[T]>> for Arc<[T; N]>
where
[T; N]: LengthAtMost32,