Skip to content

Render stability attributes in rustdoc #8965

Closed
@huonw

Description

@huonw
/// Does something badly.
#[deprecated="use `fixed`"]
pub fn broken() { .. }

/// Does something well.
#[stable]
pub fn fixed() { .. }

Function broken

fn broken()

Stability: Deprecated[coloured red] use fixed

Does something badly.

Function fixed

fn fixed()

Stability: Stable[coloured e.g. green]

Does something well.

(Part of #6875 and #8125, continuation of #8921.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)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