Skip to content

Rustdoc doesn't redirect links of uses of reexported items with inlined documentation #11678

Closed
@huonw

Description

@huonw
#[crate_id="reexports"];

pub use foo::{func, Type};

mod foo {
    /// Hi
    pub struct Type;

    /// Hello
    pub fn func(x: Type) {}
}

Rustdoc will generate the documentation for func and Type at the top level (i.e. reexports/struct.Type.html and reexports/fn.func.html), but the Type link in the signature of func points to reexports/foo/struct.Type.html, i.e. the non-inlined documentation.

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