Skip to content

Commit

Permalink
Move to unstable, linking the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
poliorcetics committed Jun 9, 2020
1 parent 496818c commit b03164e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/ffi/c_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() }
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit b03164e

Please sign in to comment.