Skip to content

Exact searches with path are only exact for the last element #146129

@lolbinarycat

Description

@lolbinarycat

Reproduction Steps

search for "Vec::new" in the standard library.

Expected Outcome

only Vec::new should show up as a result

Actual Output

VecDeque::new also shows up
Image

Version

rustdoc 1.91.0-nightly (7aef4be 2025-09-01)

Additional Details

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-searchArea: Rustdoc's search featureC-bugCategory: This is a bug.T-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