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)

Activity

added
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Mar 9, 2025
added
T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
and removed
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Mar 9, 2025
added
T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
on Mar 9, 2025
self-assigned this
on Mar 15, 2025
lolbinarycat

lolbinarycat commented on Mar 15, 2025

@lolbinarycat
Contributor

One situation that I think is worth keeping in mind is if someone were to search something like Yield::init in your example, we probably would want to still show them something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Participants

      @kornelski@GuillaumeGomez@lolbinarycat@jieyouxu@rustbot

      Issue actions

        Blanket impls cause bloated search results in rustdoc · Issue #138251 · rust-lang/rust