Skip to content

Documentation is partially missing when a documented re-export is shadowing a glob re-export #149895

@kpreid

Description

@kpreid

Reproduction Steps

Create a workspace with two libraries:

foo/src/lib.rs:

pub struct Foo;

bar/src/lib.rs:

/// Documentation here
pub use foo::Foo;

pub use foo::*;

Archive containing the exact configuration I tested: glob-doc-missing.zip

Expected Outcome

"Documentation here" should appear on the documentation page of bar::Foo.

Actual Output

"Documentation here" appears in the item list of bar but not on the documentation page of bar::Foo.

Image Image

Version

rustdoc 1.92.0 (ded5c06 2025-12-08)

Additional Details

@rustbot label +A-cross-crate-reexports

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateC-bugCategory: This is a bug.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