Skip to content

rustdoc: reexports of hidden items are not hidden, and look confusing #130322

Open
@RalfJung

Description

@RalfJung

I tried searching for the (unstable) Receiver trait in the standard library. The only result it links to is this:

image

I would expect this to be clickable or have some other way for me to look at the actual definition of this trait. But nothing, the story just ends here.

Looking at the trait, I noticed this:

#[doc(hidden)]
pub trait Receiver {
    // Empty.
}

So probably the doc(hidden) is why we don't get a link. But shouldn't rustdoc then also hide the reexport?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-local-reexportsArea: Documentation that has been locally re-exported (i.e., non-cross-crate)A-rustdoc-searchArea: Rustdoc's search featureC-bugCategory: This is a bug.S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-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