Skip to content

docs generation ignoring 'no docs' for re-exported items #139910

Description

@jnqnfe

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    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.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions