|
154 | 154 |
|
155 | 155 | #![stable(feature = "rust1", since = "1.0.0")]
|
156 | 156 |
|
157 |
| -#[stable(feature = "alloc_c_string", since = "1.64.0")] |
158 |
| -pub use alloc::ffi::{CString, FromVecWithNulError, IntoStringError, NulError}; |
159 |
| -#[stable(feature = "core_c_str", since = "1.64.0")] |
160 |
| -pub use core::ffi::{CStr, FromBytesWithNulError}; |
| 157 | +#[unstable(feature = "c_str_module", issue = "112134")] |
| 158 | +pub mod c_str; |
| 159 | + |
| 160 | +#[doc(inline)] |
| 161 | +#[stable(feature = "rust1", since = "1.0.0")] |
| 162 | +pub use self::c_str::{CStr, CString}; |
| 163 | + |
| 164 | +#[doc(no_inline)] |
| 165 | +#[stable(feature = "cstr_from_bytes", since = "1.10.0")] |
| 166 | +pub use self::c_str::FromBytesWithNulError; |
| 167 | + |
| 168 | +#[doc(no_inline)] |
| 169 | +#[stable(feature = "cstr_from_bytes_until_nul", since = "1.69.0")] |
| 170 | +pub use self::c_str::FromBytesUntilNulError; |
| 171 | + |
| 172 | +#[doc(no_inline)] |
| 173 | +#[stable(feature = "rust1", since = "1.0.0")] |
| 174 | +pub use self::c_str::NulError; |
| 175 | + |
| 176 | +#[doc(no_inline)] |
| 177 | +#[stable(feature = "cstring_from_vec_with_nul", since = "1.58.0")] |
| 178 | +pub use self::c_str::FromVecWithNulError; |
| 179 | + |
| 180 | +#[doc(no_inline)] |
| 181 | +#[stable(feature = "cstring_into", since = "1.7.0")] |
| 182 | +pub use self::c_str::IntoStringError; |
161 | 183 |
|
162 | 184 | #[stable(feature = "rust1", since = "1.0.0")]
|
163 | 185 | pub use self::os_str::{OsStr, OsString};
|
|
0 commit comments