Skip to content

Rustdoc: glob reexport may duplicate module #83375

Closed
ruma/ruma
#1288
@WaffleLapkin

Description

@WaffleLapkin

If glob reexport reexports module x and there is already module x, the documentation duplicates.

pub mod sub {
    pub struct Item;

    pub mod prelude {
        pub use super::Item;
    }    
}

pub mod prelude {}

#[doc(inline)]
pub use sub::*;

Current behaviour:

image

(prelude module is duplicated, though both prelude module links point to crate::prelude as expected)

The expected behaviour: prelude module is only shown once.

Metadata

Metadata

Assignees

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