Skip to content

[rustdoc] Various issues with search tabs #45608

Closed
@Seeker14491

Description

@Seeker14491

I've come across several issues related to the search tabs:

  • While on the search results screen, if you click on the "As parameters" or "As return value" tabs, then type in a query, the results shown are from the "Types/modules" tab.
  • The "As parameters" and "As return value" tabs only show results that have the query string in its name or path. Even then it's missing results. For example, std::thread::current has signature pub fn current() -> Thread, yet doesn't show up in the "As return value" tab when searching for "Thread".
  • When searching, functions whose name is the same as its return type are not shown on the "Types/modules" tab. (details in my second post)
  • I think the first tab shouldn't be labeled "Types/modules", as it also shows functions and macros. (moved to separate issue [rustdoc] Improve "Types/modules" label on the search results page #45787)

Link to the recent pull request implementing the search tabs

cc @GuillaumeGomez

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.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