@@ -106,7 +106,7 @@ use core::str::{self, Utf8Error};
106106/// and other memory errors.
107107#[ derive( PartialEq , PartialOrd , Eq , Ord , Hash , Clone ) ]
108108#[ cfg_attr( not( test) , rustc_diagnostic_item = "cstring_type" ) ]
109- #[ stable ( feature = "rust1 " , since = "1.0.0 " ) ]
109+ #[ unstable ( feature = "alloc_c_string " , issue = "94079 " ) ]
110110pub struct CString {
111111 // Invariant 1: the slice ends with a zero byte and has a length of at least one.
112112 // Invariant 2: the slice contains only one zero byte.
@@ -130,7 +130,7 @@ pub struct CString {
130130/// let _: NulError = CString::new(b"f\0oo".to_vec()).unwrap_err();
131131/// ```
132132#[ derive( Clone , PartialEq , Eq , Debug ) ]
133- #[ stable ( feature = "rust1 " , since = "1.0.0 " ) ]
133+ #[ unstable ( feature = "alloc_c_string " , issue = "94079 " ) ]
134134pub struct NulError ( usize , Vec < u8 > ) ;
135135
136136#[ derive( Clone , PartialEq , Eq , Debug ) ]
@@ -155,7 +155,7 @@ enum FromBytesWithNulErrorKind {
155155/// let _: FromVecWithNulError = CString::from_vec_with_nul(b"f\0oo".to_vec()).unwrap_err();
156156/// ```
157157#[ derive( Clone , PartialEq , Eq , Debug ) ]
158- #[ stable ( feature = "cstring_from_vec_with_nul " , since = "1.58.0 " ) ]
158+ #[ unstable ( feature = "alloc_c_string " , issue = "94079 " ) ]
159159pub struct FromVecWithNulError {
160160 error_kind : FromBytesWithNulErrorKind ,
161161 bytes : Vec < u8 > ,
@@ -221,7 +221,7 @@ impl FromVecWithNulError {
221221/// This `struct` is created by [`CString::into_string()`]. See
222222/// its documentation for more.
223223#[ derive( Clone , PartialEq , Eq , Debug ) ]
224- #[ stable ( feature = "cstring_into " , since = "1.7.0 " ) ]
224+ #[ unstable ( feature = "alloc_c_string " , issue = "94079 " ) ]
225225pub struct IntoStringError {
226226 inner : CString ,
227227 error : Utf8Error ,
0 commit comments