Skip to content

rustdoc renders deprecated label in ambiguous location #98231

Closed
@rossmacarthur

Description

@rossmacarthur

rustdoc renders labels like "Deprecated" next to items like functions which is very useful. However, it sometimes places it ambiguously below an item where you're not sure if it refers to the above item or the below item.

See here

For example in the following screenshot it is not sure whether std::env::home_dir is deprecated or std::env::join_paths.

image

I get the same behaviour in both Firefox 101.0.1 and Chrome 102.0.5005.115. I'm on macOS.

Interestingly the column overflow behaviour for small screens and mobile is much better. For example

image

@rustbot label +A-rustdoc-ui +T-rustdoc

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)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