Skip to content

rustdoc: improve searching for duplicate functions of generic types #90929

Open

Description

@calebzulawski

This is coming from std::simd (rust-lang/portable-simd#191).

Consider searching std for Simd::abs: https://doc.rust-lang.org/nightly/std/simd/?search=Simd%3A%3Aabs

This search only returns the first instance of the abs function, which right now is Simd::<i8, LANES>::abs. The problem here is that abs is implemented for other integers, as well as f32 and f64, making those additional implementations hard to discover. Should perhaps each implementation appear in search? Or should it be easier to find other functions with the same name?

Activity

  1. changed the title [-]rustdoc: improve searching for functions of generic types[/-] [+]rustdoc: improve searching for duplicate functions of generic types[/+] on Nov 15, 2021
  2. added
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    on Nov 15, 2021
  3. added a commit that references this issue on Oct 10, 2023
  4. added a commit that references this issue on Oct 10, 2023
  5. added a commit that references this issue on Oct 10, 2023
  6. added
    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.
    E-needs-designThis issue needs exploration and design to see how and if we can fix/implement it
    on Apr 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-searchArea: Rustdoc's search featureC-feature-requestCategory: A feature request, i.e: not implemented / a PR.E-needs-designThis issue needs exploration and design to see how and if we can fix/implement itT-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