]> git.lizzy.rs Git - rust.git/commitdiff
Move to unstable, linking the issue
authorAlexis Bourget <alexis.bourget@gmail.com>
Tue, 9 Jun 2020 20:15:05 +0000 (22:15 +0200)
committerAlexis Bourget <alexis.bourget@gmail.com>
Tue, 9 Jun 2020 20:15:05 +0000 (22:15 +0200)
src/libstd/ffi/c_str.rs

index f3a935ccc113026a868728cc5febb7b30a88b990..6f7dc091897f4d460676eaa35af695e1c330176f 100644 (file)
@@ -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<u8>) -> Self {
         Self { inner: v.into_boxed_slice() }
     }
@@ -693,7 +693,7 @@ pub unsafe fn from_vec_with_nul_unchecked(v: Vec<u8>) -> 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<u8>) -> Result<Self, FromBytesWithNulError> {
         let nul_pos = memchr::memchr(0, &v);
         match nul_pos {