Skip to content

Cross-crate import chain misses docs from middle crate #120927

Open
@dhardy

Description

@dhardy

Given crates a:

/// (doc in a)
pub fn foo() {}

b:

/// (doc in b)
#[doc(inline)]
pub use a::foo;

and c:

/// (doc in master crate)
#[doc(inline)]
pub use b::foo;

The resulting rustdoc output for c omits documentation added in b:
image
I would expect the docs from all crates to be included.

Source for reproduction

inline-doc-reexport.zip

Related

#84619
#89020
@rustbot label +A-cross-crate-reexports +T-rustdoc

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