mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-05 03:24:06 +03:00
Rollup merge of #69538 - JohnTitor:boxed-slice-try-from, r=Centril
Stabilize `boxed_slice_try_from` Closes #69202
This commit is contained in:
@@ -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
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user