Skip to content

Commit 40b0026

Browse files
committed
docs: inline std::ffi::c_str types to std::ffi
Rustdoc has no way to show that an item is stable, but only at a different path. `std::ffi::c_str::NulError` is not stable, but `std::ffi::NulError` is. To avoid marking these types as unstable when someone just wants to follow a link from `CString`, inline them into their stable paths.
1 parent e2848a0 commit 40b0026

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

library/std/src/ffi/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -179,19 +179,19 @@ pub use core::ffi::{
179179
c_ulong, c_ulonglong, c_ushort,
180180
};
181181

182-
#[doc(no_inline)]
182+
#[doc(inline)]
183183
#[stable(feature = "cstr_from_bytes_until_nul", since = "1.69.0")]
184184
pub use self::c_str::FromBytesUntilNulError;
185-
#[doc(no_inline)]
185+
#[doc(inline)]
186186
#[stable(feature = "cstr_from_bytes", since = "1.10.0")]
187187
pub use self::c_str::FromBytesWithNulError;
188-
#[doc(no_inline)]
188+
#[doc(inline)]
189189
#[stable(feature = "cstring_from_vec_with_nul", since = "1.58.0")]
190190
pub use self::c_str::FromVecWithNulError;
191-
#[doc(no_inline)]
191+
#[doc(inline)]
192192
#[stable(feature = "cstring_into", since = "1.7.0")]
193193
pub use self::c_str::IntoStringError;
194-
#[doc(no_inline)]
194+
#[doc(inline)]
195195
#[stable(feature = "rust1", since = "1.0.0")]
196196
pub use self::c_str::NulError;
197197
#[doc(inline)]

0 commit comments

Comments
 (0)