Skip to content

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

Open
@lolbinarycat

Description

@lolbinarycat

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-searchArea: Rustdoc's search featureC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions