Glob-duplicated item names produce duplicated entries in rustdoc #60522
Labels
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Consider such code:
Due to how glob-import conflict resolution works (please correct me if I’m wrong @petrochenkov), when referring to the names
banana
andpeach
, only thebanana//2
andpeach//2
can be referred to.rustdoc
will include both the modules into the output, repeated:Moreover, both of the duplicated links actually refer to the same module index, so whether you end up seeing the correct module or the wrong one is a matter of luck(?). In my case all the modules render empty, suggesting the wrong module having been rendered.
The list of all items will (correctly) contain the
Brown
andPungent
structures, but not the unreachableYellow
orPink
ones:The text was updated successfully, but these errors were encountered: