Skip to content

[rustdoc] adding docs on a reexport that shadows a glob reexport does not work properly #143107

Open
@lolbinarycat

Description

@lolbinarycat

Code

mod raw {
    pub fn foo() {}
}

/// Foobar
///
/// Baz
pub use raw::foo;

pub use raw::*;

Reproduction Steps

  1. cargo doc --open
  2. click on the link to foo

Expected Outcome

The "foobaz bar" docs show up.

Actual Output

No docs on fn.foo.html

Image

Version

rustdoc 1.88.0 (6b00bc3 2025-06-23)

Additional Details

Oddly, the module summary contains the correct docs.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-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