Public items re-exported publicly in the same crate could have inlined docs #22310
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
As an example of what I mean, see this page: http://doc.rust-lang.org/syntax/parse/lexer/index.html
There is a re-exports section:
All of those items are public and reachable, so they're documented in
ext::tt::transcribe
. Butlexer::new_tt_reader
, for example, does not appear in the search index and (less seriously) it's a little annoying to have to jump through another set of links to another page to read the docs for that function.When a private item is re-exported publicly in the same crate, or a public item from another crate is re-exported, the docs are inlined and an entry is created in the search index. I think it would be reasonable to do the same for public intra-crate re-exports.
The text was updated successfully, but these errors were encountered: