Skip to content

Commit b03164e

Browse files
committed
Move to unstable, linking the issue
1 parent 496818c commit b03164e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/ffi/c_str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ impl CString {
653653
/// unsafe { CString::from_vec_unchecked(b"abc".to_vec()) }
654654
/// );
655655
/// ```
656-
#[stable(feature = "cstring_from_vec_with_nul", since = "1.46.0")]
656+
#[unstable(feature = "cstring_from_vec_with_nul", issue = "73179")]
657657
pub unsafe fn from_vec_with_nul_unchecked(v: Vec<u8>) -> Self {
658658
Self { inner: v.into_boxed_slice() }
659659
}
@@ -693,7 +693,7 @@ impl CString {
693693
/// ```
694694
///
695695
/// [`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")]
697697
pub fn from_vec_with_nul(v: Vec<u8>) -> Result<Self, FromBytesWithNulError> {
698698
let nul_pos = memchr::memchr(0, &v);
699699
match nul_pos {

0 commit comments

Comments
 (0)