Skip to content

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

Open
@calebzulawski

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?

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