Skip to content

Missing inlining for private re-export #109258

Closed
@GuillaumeGomez

Description

@GuillaumeGomez

This code is failing:

pub use crate::bar::Foo;
pub mod bar;

// bar/mod.rs
mod priv_mod;
pub use self::priv_mod::Foo;

// bar/priv_mod.rs
pub struct Foo;

Foo should be inlined in bar but isn't. The regression appeared in #108870.

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