@@ -108,7 +108,7 @@ use crate::sync::Arc;
108108/// and other memory errors.
109109#[ derive( PartialEq , PartialOrd , Eq , Ord , Hash , Clone ) ]
110110#[ cfg_attr( not( test) , rustc_diagnostic_item = "cstring_type" ) ]
111- #[ unstable ( feature = "alloc_c_string" , issue = "94079 " ) ]
111+ #[ stable ( feature = "alloc_c_string" , since = "1.64.0 " ) ]
112112pub struct CString {
113113 // Invariant 1: the slice ends with a zero byte and has a length of at least one.
114114 // Invariant 2: the slice contains only one zero byte.
@@ -132,7 +132,7 @@ pub struct CString {
132132/// let _: NulError = CString::new(b"f\0oo".to_vec()).unwrap_err();
133133/// ```
134134#[ derive( Clone , PartialEq , Eq , Debug ) ]
135- #[ unstable ( feature = "alloc_c_string" , issue = "94079 " ) ]
135+ #[ stable ( feature = "alloc_c_string" , since = "1.64.0 " ) ]
136136pub struct NulError ( usize , Vec < u8 > ) ;
137137
138138#[ derive( Clone , PartialEq , Eq , Debug ) ]
@@ -157,7 +157,7 @@ enum FromBytesWithNulErrorKind {
157157/// let _: FromVecWithNulError = CString::from_vec_with_nul(b"f\0oo".to_vec()).unwrap_err();
158158/// ```
159159#[ derive( Clone , PartialEq , Eq , Debug ) ]
160- #[ unstable ( feature = "alloc_c_string" , issue = "94079 " ) ]
160+ #[ stable ( feature = "alloc_c_string" , since = "1.64.0 " ) ]
161161pub struct FromVecWithNulError {
162162 error_kind : FromBytesWithNulErrorKind ,
163163 bytes : Vec < u8 > ,
@@ -223,7 +223,7 @@ impl FromVecWithNulError {
223223/// This `struct` is created by [`CString::into_string()`]. See
224224/// its documentation for more.
225225#[ derive( Clone , PartialEq , Eq , Debug ) ]
226- #[ unstable ( feature = "alloc_c_string" , issue = "94079 " ) ]
226+ #[ stable ( feature = "alloc_c_string" , since = "1.64.0 " ) ]
227227pub struct IntoStringError {
228228 inner : CString ,
229229 error : Utf8Error ,
0 commit comments