diff options
| author | Alexis Bourget <alexis.bourget@gmail.com> | 2020-06-09 22:15:05 +0200 |
|---|---|---|
| committer | Alexis Bourget <alexis.bourget@gmail.com> | 2020-06-09 22:15:05 +0200 |
| commit | b03164e6679284b984437fe82092682cf7c984f8 (patch) | |
| tree | 52509ef3fed7ff1af0b52d286ff4904933802506 | |
| parent | 496818ccd79e9bc093552887c923168defb13c6c (diff) | |
| download | rust-b03164e6679284b984437fe82092682cf7c984f8.tar.gz rust-b03164e6679284b984437fe82092682cf7c984f8.zip | |
Move to unstable, linking the issue
| -rw-r--r-- | src/libstd/ffi/c_str.rs | 4 |
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 { |
