rust-lang / rust-lang/rust

[rustdoc search] trait associated items not index by search like trait methods

Open
#149,224 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-rustdoc-search C-bug T-rustdoc T-rustdoc-frontend
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Reproduction Steps

search standard library for std::str::Chars::Item

Expected Outcome

results link to Chars::Item

Actual Outcome

No results

Version

rustdoc 1.93.0-nightly (27b076af7 2025-11-21)

Additional Details

Note that searching for std::str::Chars::next does work properly

Originally found when trying to search the object crate to figure out the type of <File as Object>::Symbol by searching File::Symbol.

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

Reproduce the issue by searching the standard library through rustdoc for std::str::Chars::Item, then compare it with the working std::str::Chars::next search. Trace rustdoc's search handling for trait methods and associated items; done means the search results link to Chars::Item and equivalent associated-item searches work.

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.