rust-lang / rust-lang/rust

Type aliases cannot be used in type-based search

Open
#145,508 0 comments 0 reactions 0 assignees View on GitHub

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

Expected Outcome

search should be equivalent to searching for NonZero<u32>.

Actual Output

NonZeroU32 is not recognized as a type.

Image

Version

rustdoc 1.91.0-nightly (cd7cbe818 2025-08-15)

Additional Details

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.