Skip to content

Blanket impls cause bloated search results in rustdoc #138251

Open
@kornelski

Description

@kornelski

There is a blanket impl<T> Pointable for T that has an init method, and as a result ALL types have the init method, and searching for init in Rustdoc lists ALL types:

https://docs.rs/rayon/1.10.0/rayon/?search=init

This is unhelpful. I'm trying to find more specific init methods, and listing every single type in the crate is obscuring the search results.

For blanket impls, I'd prefer the search to only list the trait as one entry.


rustdoc 1.87.0-nightly (30f168e 2025-03-05)

Metadata

Metadata

Assignees

Labels

A-rustdoc-searchArea: Rustdoc's search featureT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions