-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Rustdoc reduce search rank for deprecated items #98759
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
A-rustdoc-search
Area: Rustdoc's search feature
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Comments
This was referenced Feb 2, 2023
@rustbot claim |
Another example from #107629 (comment): |
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Mar 11, 2023
…=jsha rustdoc: sort deprecated items lower in search closes rust-lang#98759 ### Screenshots `i32::MAX` show sup above `std::i32::MAX` and `core::i32::MAX`  If just searching for `min`, the deprecated results show up far below other things:  one page later  ~~And, as you can see, the "Deprecation planned" message shows up in the search results. The same is true for fully-deprecated items like `mem::uninitialized`: ~~ Edit: the deprecation message change was removed from this PR. Only the sorting is changed.
Fixed by #107629. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-rustdoc-search
Area: Rustdoc's search feature
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
When user search
radix
the non-const which is deprecated rank higher than the non-deprecated version.Would be nice to reduce rank of deprecated items in search, it appears on the first result.
It would be better if the search result show that the item is deprecated in favor of something else, and that something else have a higher ranking.
@rustbot label A-rustdoc-search C-enhancement T-rustdoc
The text was updated successfully, but these errors were encountered: