Skip to content

#[doc(inline)] reexports have both duplicated docs and missing docs #108281

Closed
@GuillaumeGomez

Description

@GuillaumeGomez

Linked to #59368.

#[doc(hidden)]
pub fn bar() {}

/// Displayed
#[doc(inline)]
pub use	crate::bar as Bar;
#[doc(inline)]
/// Hello
pub use crate::Bar as Bar2;

Bar will have Displayed Displayed as documentation whereas Bar2 will have Hello Hello (but it should also have the docs from Bar).

Metadata

Metadata

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