Skip to content

csearch::get_item_attrs() seems to always be blank for const items #19773

Closed
@tomjakubowski

Description

@tomjakubowski

This prevents rustdoc from inlining docs from another crate's constant items.

example code:

// foo.rs
#![crate_type="lib"]
/// Docs for a const
pub const FOO: &'static str = "Foo bar";
// bar.rs
#![crate_type="lib"]
extern crate foo;

pub use foo::FOO;

(This issue is unrelated to the myriad issues rustdoc currently has with constants, and came up while I was fixing them).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions