Location
https://doc.rust-lang.org/std/ffi/enum.c_void.html
Summary
The core::ffi::c_void type, if you look at the underlying code, has an attribute #[cfg_attr(not(doc), repr(u8))] with a comment alongside it that reads as follows:
An implementation detail we don't want to show up in rustdoc
This detail indeed does not show up on the core::ffi::c_void page, however this type is re-exported as std::ffi::c_void where this detail is shown on the page. It seems that rustdoc ignores such do-not-document attributes for re-exported items.
Location
https://doc.rust-lang.org/std/ffi/enum.c_void.html
Summary
The
core::ffi::c_voidtype, if you look at the underlying code, has an attribute#[cfg_attr(not(doc), repr(u8))]with a comment alongside it that reads as follows:This detail indeed does not show up on the
core::ffi::c_voidpage, however this type is re-exported asstd::ffi::c_voidwhere this detail is shown on the page. It seems that rustdoc ignores such do-not-document attributes for re-exported items.