Skip to content

methods of re-exported private items are not placed in the search index #11943

Closed
@SiegeLord

Description

@SiegeLord

E.g. take this crate:

#[crate_id="test"];

pub use private::Foo;

mod private
{
    pub struct Foo;
    impl Foo
    {
        pub fn test_method() {}
    }
}

After generating the documentation with it, you cannot search for the test_method method. This can be manually verified by grepping for it in the doc/test/search-index.js file.

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