]> git.lizzy.rs Git - rust.git/commitdiff
Stabilize `boxed_slice_try_from`
authorYuki Okushi <huyuumi.dev@gmail.com>
Fri, 28 Feb 2020 04:28:09 +0000 (13:28 +0900)
committerYuki Okushi <huyuumi.dev@gmail.com>
Fri, 28 Feb 2020 04:28:09 +0000 (13:28 +0900)
src/liballoc/boxed.rs
src/liballoc/rc.rs
src/liballoc/sync.rs

index 3ac4bd82a3a10fa4919d078b9dcefc53d88bd1b9..81b0e9817d261f65315f810a10b52a320f065771 100644 (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,
index 9dc5447397f09167602c30aa6fa7b11eed67bdee..6ee128f4fa1d2a352968f14faab1172b94a7d434 100644 (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,
index fd285242d5be48ec9478ac2d7c509b60ab3194fd..9bd708c0f595c22df1814489dd1697cedede1e45 100644 (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,