From: Alexis Bourget Date: Tue, 9 Jun 2020 20:15:05 +0000 (+0200) Subject: Move to unstable, linking the issue X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=b03164e6679284b984437fe82092682cf7c984f8;p=rust.git Move to unstable, linking the issue --- diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs index f3a935ccc11..6f7dc091897 100644 --- a/src/libstd/ffi/c_str.rs +++ b/src/libstd/ffi/c_str.rs @@ -653,7 +653,7 @@ fn into_inner(self) -> Box<[u8]> { /// unsafe { CString::from_vec_unchecked(b"abc".to_vec()) } /// ); /// ``` - #[stable(feature = "cstring_from_vec_with_nul", since = "1.46.0")] + #[unstable(feature = "cstring_from_vec_with_nul", issue = "73179")] pub unsafe fn from_vec_with_nul_unchecked(v: Vec) -> Self { Self { inner: v.into_boxed_slice() } } @@ -693,7 +693,7 @@ pub unsafe fn from_vec_with_nul_unchecked(v: Vec) -> Self { /// ``` /// /// [`new`]: #method.new - #[stable(feature = "cstring_from_vec_with_nul", since = "1.46.0")] + #[unstable(feature = "cstring_from_vec_with_nul", issue = "73179")] pub fn from_vec_with_nul(v: Vec) -> Result { let nul_pos = memchr::memchr(0, &v); match nul_pos {