Skip to content

rustdoc: Only show the original item for re-exported items in search results #78719

Closed
@camelid

Description

@camelid

Currently rustdoc will show all items that match the query string, even re-exported ones, which can be kind of frustrating when I get a bunch of results that are actually all the same thing:

image

I propose that instead we only index the original item, not any of the re-exports. I am not saying that we don't inline documentation from the original, just that we only store the original in the search index.

See also: #15723, #24305

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-searchArea: Rustdoc's search featureC-enhancementCategory: An issue proposing an enhancement or a PR with one.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