-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateArea: Documentation that has been re-exported from a different crateA-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-reprArea: the `#[repr(stuff)]` attributeArea: the `#[repr(stuff)]` attributeC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
Location
Stable documentation:
https://doc.rust-lang.org/std/ffi/enum.c_void.html
Permalink to comment in source code:
https://doc.rust-lang.org/1.85.0/src/core/ffi/mod.rs.html#218
Summary
There's a comment in the source code that suggests the repr(u8)
attribute on c_void is an internal implementation detail that shouldn't be exposed to documentation, and is wrapped in a cfg_attr
to that effect.
This appears to have worked for the core
crate docs, but the re-export in std
does have the attribute visible.
Metadata
Metadata
Assignees
Labels
A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateArea: Documentation that has been re-exported from a different crateA-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-reprArea: the `#[repr(stuff)]` attributeArea: the `#[repr(stuff)]` attributeC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.