File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -653,7 +653,7 @@ impl CString {
653
653
/// unsafe { CString::from_vec_unchecked(b"abc".to_vec()) }
654
654
/// );
655
655
/// ```
656
- #[ stable ( feature = "cstring_from_vec_with_nul" , since = "1.46.0 " ) ]
656
+ #[ unstable ( feature = "cstring_from_vec_with_nul" , issue = "73179 " ) ]
657
657
pub unsafe fn from_vec_with_nul_unchecked ( v : Vec < u8 > ) -> Self {
658
658
Self { inner : v. into_boxed_slice ( ) }
659
659
}
@@ -693,7 +693,7 @@ impl CString {
693
693
/// ```
694
694
///
695
695
/// [`new`]: #method.new
696
- #[ stable ( feature = "cstring_from_vec_with_nul" , since = "1.46.0 " ) ]
696
+ #[ unstable ( feature = "cstring_from_vec_with_nul" , issue = "73179 " ) ]
697
697
pub fn from_vec_with_nul ( v : Vec < u8 > ) -> Result < Self , FromBytesWithNulError > {
698
698
let nul_pos = memchr:: memchr ( 0 , & v) ;
699
699
match nul_pos {
You can’t perform that action at this time.
0 commit comments