Skip to content

Rustdoc: indicate deprecated items on the sidebar #107568

Closed as not planned
Closed as not planned
@tgross35

Description

@tgross35

For example, at this link: https://doc.rust-lang.org/std/macro.try.html

image

try is deprecated but there's no way to easily identify that from the sidebar. Adding a deprecated label there (or the thumbs down emoji if space is a concern) would be quite helpful.

Sorting deprecated items to the bottom would also be quite reasonable imho, to avoid noise for anyone looking for only non-deprecated methods. (This probably wouldn't be bad to do for deprecated methods as well on the main page, since the ordering is a bit random. But that's a separate discussion.)

@rustbot label A-rustdoc-ui C-enhancement T-rustdoc

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions