rust-lang / rust-lang/rust

rustdoc: `doc(inline)` is hidden by inner `doc(hidden)`

Open
#162,605 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug E-needs-mcve T-rustdoc
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

See https://github.com/Rust-for-Linux/linux/issues/1242#issuecomment-5611513515

This may relate to how rustdoc determines whether to hide re-exported items.
The fix should be that once an entry has been explicitly exposed via doc(inline), subsequent ref to the entry should no longer be affected by hidden located down the chain.

BTW, I remember the code being a bit messy, was it refactored later?🤔

cc @ojeda @GuillaumeGomez @LeeSomm

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Rust-for-Linux issue and comment, then trace rustdoc's handling of re-exported items involving doc(inline) and doc(hidden). Done means an entry explicitly exposed with doc(inline) remains visible even when a later reference in its chain is marked hidden.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.