Skip to content

rustdoc should maybe only consider trait definitions and not trait impls for the search #87914

Open
@sdroege

Description

@sdroege

See for example https://doc.rust-lang.org/std/?search=fmt . This shows the Debug::fmt impl of each of these types, which can easily get quite noisy and make it hard to spot that actually it's the Debug::fmt somewhere at the top that is the origin of all the results.

In addition, rustdoc only lists the Debug::fmt impls of each of the types but not the Display::fmt impl, which is also quite inconsistent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-jsArea: Rustdoc's JS front-endA-rustdoc-searchArea: Rustdoc's search featureC-feature-requestCategory: A feature request, i.e: not implemented / a PR.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