@@ -106,7 +106,7 @@ use core::str::{self, Utf8Error};
106
106
/// and other memory errors.
107
107
#[ derive( PartialEq , PartialOrd , Eq , Ord , Hash , Clone ) ]
108
108
#[ 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 " ) ]
110
110
pub struct CString {
111
111
// Invariant 1: the slice ends with a zero byte and has a length of at least one.
112
112
// Invariant 2: the slice contains only one zero byte.
@@ -130,7 +130,7 @@ pub struct CString {
130
130
/// let _: NulError = CString::new(b"f\0oo".to_vec()).unwrap_err();
131
131
/// ```
132
132
#[ derive( Clone , PartialEq , Eq , Debug ) ]
133
- #[ stable ( feature = "rust1 " , since = "1.0.0 " ) ]
133
+ #[ unstable ( feature = "alloc_c_string " , issue = "94079 " ) ]
134
134
pub struct NulError ( usize , Vec < u8 > ) ;
135
135
136
136
#[ derive( Clone , PartialEq , Eq , Debug ) ]
@@ -155,7 +155,7 @@ enum FromBytesWithNulErrorKind {
155
155
/// let _: FromVecWithNulError = CString::from_vec_with_nul(b"f\0oo".to_vec()).unwrap_err();
156
156
/// ```
157
157
#[ 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 " ) ]
159
159
pub struct FromVecWithNulError {
160
160
error_kind : FromBytesWithNulErrorKind ,
161
161
bytes : Vec < u8 > ,
@@ -221,7 +221,7 @@ impl FromVecWithNulError {
221
221
/// This `struct` is created by [`CString::into_string()`]. See
222
222
/// its documentation for more.
223
223
#[ derive( Clone , PartialEq , Eq , Debug ) ]
224
- #[ stable ( feature = "cstring_into " , since = "1.7.0 " ) ]
224
+ #[ unstable ( feature = "alloc_c_string " , issue = "94079 " ) ]
225
225
pub struct IntoStringError {
226
226
inner : CString ,
227
227
error : Utf8Error ,
0 commit comments