-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
C-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
Code
Example in this PR: #145335 (comment)
The wtf8
module is hidden, but the linkchecker shows that the implementations of traits for its types are not hidden, leading to dead links.
Reproduction Steps
- In non-hidden module, define non-hidden trait
- In hidden module, define a type and implement the non-hidden trait
- When generating documentation, the implementation of the hidden type will show up on the non-hidden trait, with a dead link
Expected Outcome
Types in hidden modules should be hidden in all cases, including trait implementations.
Workaround
Adding #[doc(hidden)]
directly to the types inside the hidden module correctly hides the implementations under the trait. However, this should not be necessary, since the hidden module does not generate documentation for its items.
Version
rustdoc 1.90.0-nightly (430d6eddf 2025-07-25)
Metadata
Metadata
Assignees
Labels
C-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.