-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
rustdoc search: Match identifers at word breaks #154733
Copy link
Copy link
Closed
Labels
A-rustdoc-searchArea: Rustdoc's search featureArea: Rustdoc's search featureC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant 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.Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
Metadata
Metadata
Assignees
Labels
A-rustdoc-searchArea: Rustdoc's search featureArea: Rustdoc's search featureC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant 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.Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Rustdoc search should support matching identifers at "word breaks", not just the start of the name. (I'm not sure that's how it actually works, but that's my intuition. Read on for where rustdoc-search fails to find something it should).
Code
Reproduction Steps
rustdoc +nightly dustc.rsThen search "hir::Stability"
Expected Outcome
I'd expect this to find
dustc::dustc_hir::StabilityActual Output
Search finds no items.
Version
rustdoc 1.96.0-nightly (7e46c5f 2026-04-01)
Additional Details
Inspired by the search results for
hir::Stabilitynot returningrustc_hir::StabilityCC @notriddle