@@ -2,7 +2,8 @@ use super::Vec;
22use  crate :: borrow:: Cow ; 
33
44#[ stable( feature = "cow_from_vec" ,  since = "1.8.0" ) ]  
5- impl < ' a ,  T :  Clone >  From < & ' a  [ T ] >  for  Cow < ' a ,  [ T ] >  { 
5+ #[ rustc_const_unstable( feature = "const_from" ,  issue = "143773" ) ]  
6+ impl < ' a ,  T :  Clone >  const  From < & ' a  [ T ] >  for  Cow < ' a ,  [ T ] >  { 
67    /// Creates a [`Borrowed`] variant of [`Cow`] 
78/// from a slice. 
89/// 
@@ -15,7 +16,8 @@ impl<'a, T: Clone> From<&'a [T]> for Cow<'a, [T]> {
1516} 
1617
1718#[ stable( feature = "cow_from_array_ref" ,  since = "1.77.0" ) ]  
18- impl < ' a ,  T :  Clone ,  const  N :  usize >  From < & ' a  [ T ;  N ] >  for  Cow < ' a ,  [ T ] >  { 
19+ #[ rustc_const_unstable( feature = "const_from" ,  issue = "143773" ) ]  
20+ impl < ' a ,  T :  Clone ,  const  N :  usize >  const  From < & ' a  [ T ;  N ] >  for  Cow < ' a ,  [ T ] >  { 
1921    /// Creates a [`Borrowed`] variant of [`Cow`] 
2022/// from a reference to an array. 
2123/// 
@@ -28,7 +30,8 @@ impl<'a, T: Clone, const N: usize> From<&'a [T; N]> for Cow<'a, [T]> {
2830} 
2931
3032#[ stable( feature = "cow_from_vec" ,  since = "1.8.0" ) ]  
31- impl < ' a ,  T :  Clone >  From < Vec < T > >  for  Cow < ' a ,  [ T ] >  { 
33+ #[ rustc_const_unstable( feature = "const_from" ,  issue = "143773" ) ]  
34+ impl < ' a ,  T :  Clone >  const  From < Vec < T > >  for  Cow < ' a ,  [ T ] >  { 
3235    /// Creates an [`Owned`] variant of [`Cow`] 
3336/// from an owned instance of [`Vec`]. 
3437/// 
@@ -41,7 +44,8 @@ impl<'a, T: Clone> From<Vec<T>> for Cow<'a, [T]> {
4144} 
4245
4346#[ stable( feature = "cow_from_vec_ref" ,  since = "1.28.0" ) ]  
44- impl < ' a ,  T :  Clone >  From < & ' a  Vec < T > >  for  Cow < ' a ,  [ T ] >  { 
47+ #[ rustc_const_unstable( feature = "const_from" ,  issue = "143773" ) ]  
48+ impl < ' a ,  T :  Clone >  const  From < & ' a  Vec < T > >  for  Cow < ' a ,  [ T ] >  { 
4549    /// Creates a [`Borrowed`] variant of [`Cow`] 
4650/// from a reference to [`Vec`]. 
4751/// 
0 commit comments