rust-lang / rust-lang/rust

[rustdoc search] sort stable items above unstable ones

Open
#138,067 7 comments 0 reactions 1 assignee View on GitHub

@lolbinarycat is already working on this.

Since Mar 7, 2025.

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

I looked up "channel", clicked on the first result, copied that path to my code...

and was very surprised when i was actually using the unstable mpmc one instead of the stable mpsc channel.

I think name/path matching should generally take priority (otherwise people who are actually looking for unstable items would be massively inconvenienced), but when two items have the same distance, we should prioritize the one that is stable.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.