Skip to content

rustdoc doesn't display values for inlined constants #15821

Closed
@tomjakubowski

Description

@tomjakubowski

For example, given foo.rs:

pub const MAGIC: u32 = 0xDEADBEEF;

And bar.rs:

extern crate foo;

pub use MAGIC = foo::MAGIC;

The generated rustdocs for bar.rs show something like:

Constants

pub const MAGIC: u32 =

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