@@ -108,7 +108,7 @@ use crate::sync::Arc;
108
108
/// and other memory errors.
109
109
#[ derive( PartialEq , PartialOrd , Eq , Ord , Hash , Clone ) ]
110
110
#[ 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 " ) ]
112
112
pub struct CString {
113
113
// Invariant 1: the slice ends with a zero byte and has a length of at least one.
114
114
// Invariant 2: the slice contains only one zero byte.
@@ -132,7 +132,7 @@ pub struct CString {
132
132
/// let _: NulError = CString::new(b"f\0oo".to_vec()).unwrap_err();
133
133
/// ```
134
134
#[ derive( Clone , PartialEq , Eq , Debug ) ]
135
- #[ unstable ( feature = "alloc_c_string" , issue = "94079 " ) ]
135
+ #[ stable ( feature = "alloc_c_string" , since = "1.64.0 " ) ]
136
136
pub struct NulError ( usize , Vec < u8 > ) ;
137
137
138
138
#[ derive( Clone , PartialEq , Eq , Debug ) ]
@@ -157,7 +157,7 @@ enum FromBytesWithNulErrorKind {
157
157
/// let _: FromVecWithNulError = CString::from_vec_with_nul(b"f\0oo".to_vec()).unwrap_err();
158
158
/// ```
159
159
#[ derive( Clone , PartialEq , Eq , Debug ) ]
160
- #[ unstable ( feature = "alloc_c_string" , issue = "94079 " ) ]
160
+ #[ stable ( feature = "alloc_c_string" , since = "1.64.0 " ) ]
161
161
pub struct FromVecWithNulError {
162
162
error_kind : FromBytesWithNulErrorKind ,
163
163
bytes : Vec < u8 > ,
@@ -223,7 +223,7 @@ impl FromVecWithNulError {
223
223
/// This `struct` is created by [`CString::into_string()`]. See
224
224
/// its documentation for more.
225
225
#[ derive( Clone , PartialEq , Eq , Debug ) ]
226
- #[ unstable ( feature = "alloc_c_string" , issue = "94079 " ) ]
226
+ #[ stable ( feature = "alloc_c_string" , since = "1.64.0 " ) ]
227
227
pub struct IntoStringError {
228
228
inner : CString ,
229
229
error : Utf8Error ,
0 commit comments