Skip to content

[rustdoc search] sort stable items above unstable ones #138067

Open
@lolbinarycat

Description

@lolbinarycat

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.

Metadata

Metadata

Assignees

Labels

A-rustdoc-searchArea: Rustdoc's search featureC-bugCategory: This is a bug.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