Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render stability attributes in rustdoc #8965

Closed
huonw opened this issue Sep 3, 2013 · 1 comment
Closed

Render stability attributes in rustdoc #8965

huonw opened this issue Sep 3, 2013 · 1 comment
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@huonw
Copy link
Member

huonw commented Sep 3, 2013

/// 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.)

@huonw
Copy link
Member Author

huonw commented Sep 3, 2013

cc @cmr, @Seldaek.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

1 participant