Type aliases cannot be used in type-based search
Open
Nobody has claimed this yet.
A-rustdoc-search
A-type-based-search
C-feature-request
T-rustdoc
T-rustdoc-frontend
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Code
std::num::NonZeroU32
Reproduction Steps
- search for
-> NonZeroU32
Expected Outcome
search should be equivalent to searching for NonZero<u32>.
Actual Output
NonZeroU32 is not recognized as a type.
Version
rustdoc 1.91.0-nightly (cd7cbe818 2025-08-15)
Additional Details
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in rustdoc's type-based search using the linked search for -> NonZeroU32, then compare it with NonZero<u32>. Trace the rustdoc search entry point that parses type queries; done means type aliases such as NonZeroU32 are recognized equivalently and the reproduction search returns the expected result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100