You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-cratesArea: Crates and their interactions (like crate loading)C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
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.
The text was updated successfully, but these errors were encountered:
jnqnfe
added
the
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
label
Apr 16, 2025
jnqnfe
changed the title
docs generation ignoring 'no docs' for re-export
docs generation ignoring 'no docs' for re-exported items
Apr 16, 2025
fmease
added
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
C-bug
Category: This is a bug.
A-crates
Area: Crates and their interactions (like crate loading)
and removed
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Apr 16, 2025
A-cratesArea: Crates and their interactions (like crate loading)C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
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:This detail indeed does not show up on the
core::ffi::c_void
page, however this type is re-exported asstd::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.The text was updated successfully, but these errors were encountered: