Skip to content

rustdoc ignores deprecation markers on constants #57917

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum

Compare https://github.com/rust-lang/rust/blob/master/src/libcore/sync/atomic.rs#L293 to https://doc.rust-lang.org/nightly/std/sync/atomic/constant.ATOMIC_BOOL_INIT.html; I would expect the constant to be marked as deprecated. Interestingly, the source code also lacks the deprecation marker: https://doc.rust-lang.org/nightly/src/core/sync/atomic.rs.html#255.

I've not attempted to verify this locally, but it seems good to investigate this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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