rust-lang / rust-lang/rust

rustdoc: items in deprecated modules should count as deprecated for search ranking

Open
#142,793 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

reproduction steps

  1. open standard library docs
  2. search u32 -> Option<char> or char::from_u32

expected outcome

deprecated std::char::from_u32 shows after all the associated methods of char.

actual outcome

std::char::from_u32 is the first result.

screenshot

rustdoc version

rustdoc 1.89.0-nightly (255aa2208 2025-06-19)

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 ranking in the standard library docs by searching u32 -> Option<char> or char::from_u32 with the reported rustdoc version. Trace rustdoc's search-ranking handling for deprecated modules, then verify that std::char::from_u32 appears after the associated methods of char.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.