Many times re-exported type shows wrong documentation page #37608
Labels
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.
When a crate B re-exports a type from another crate A under a different name in a private module, and defines a new type with the same name, and the type from the private module is re-exported in a public module using a wildcard, and the other type is also re-exported in that same public module, and a crate C re-exports this public module, the documentation page for that named type for crate C shows the wrong type when the documentation is compiled including dependencies.
Man, that's a mouthful. Here is some code to clarify:
The documentation for
c::public::S
shows the documentation fora::S
but the actual type isb::private::S
. There is no page forc::public::X
.This shows up in the wild in the documentation for
iron::headers::Cookie
, which ishyper::header::Cookie
but showscookie::Cookie
.I don't think this is one of the issues already documented in #24305
The text was updated successfully, but these errors were encountered: