rustdoc: Two modules with the same name that are re-exported show up twice with only the contents of the first one #43935
Labels
C-bug
Category: This is a bug.
T-dev-tools
Relevant to the dev-tools subteam, which will review and decide on the PR/issue.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
https://github.com/sdroege/gstreamer-rs/tree/50a1535771d711b419eee499fb6b7c48d72edd86
Here there is
auto::functions
andfunctions
re-exported in lib.rs. The modulefunctions
appears twice on the main page of the docs, but only shows the content of the first module.Also functions/etc exported from the second module do not show up anywhere (in the module index for example) unless searching for them explicitly by name.
Also in this case,
auto::functions::*
andfunctions::*
are re-exported from lib.rs, but only the contents of the first module show up, e.g. on the main page for functions/structs/etc. When searching explicitly by name, they are found nonetheless.For rustc, exporting a module name twice causes the module to be merged.
@GuillaumeGomez
The text was updated successfully, but these errors were encountered: