about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexis Bourget <alexis.bourget@gmail.com>2020-06-09 22:15:05 +0200
committerAlexis Bourget <alexis.bourget@gmail.com>2020-06-09 22:15:05 +0200
commitb03164e6679284b984437fe82092682cf7c984f8 (patch)
tree52509ef3fed7ff1af0b52d286ff4904933802506
parent496818ccd79e9bc093552887c923168defb13c6c (diff)
downloadrust-b03164e6679284b984437fe82092682cf7c984f8.tar.gz
rust-b03164e6679284b984437fe82092682cf7c984f8.zip
Move to unstable, linking the issue
-rw-r--r--src/libstd/ffi/c_str.rs4
1 files changed, 2 insertions, 2 deletions
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 @@ impl CString {
     ///     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<u8>) -> Self {
         Self { inner: v.into_boxed_slice() }
     }
@@ -693,7 +693,7 @@ impl CString {
     /// ```
     ///
     /// [`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<u8>) -> Result<Self, FromBytesWithNulError> {
         let nul_pos = memchr::memchr(0, &v);
         match nul_pos {