We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 496818c commit b03164eCopy full SHA for b03164e
src/libstd/ffi/c_str.rs
@@ -653,7 +653,7 @@ impl CString {
653
/// unsafe { CString::from_vec_unchecked(b"abc".to_vec()) }
654
/// );
655
/// ```
656
- #[stable(feature = "cstring_from_vec_with_nul", since = "1.46.0")]
+ #[unstable(feature = "cstring_from_vec_with_nul", issue = "73179")]
657
pub unsafe fn from_vec_with_nul_unchecked(v: Vec<u8>) -> Self {
658
Self { inner: v.into_boxed_slice() }
659
}
@@ -693,7 +693,7 @@ impl CString {
693
694
///
695
/// [`new`]: #method.new
696
697
pub fn from_vec_with_nul(v: Vec<u8>) -> Result<Self, FromBytesWithNulError> {
698
let nul_pos = memchr::memchr(0, &v);
699
match nul_pos {
0 commit comments