Confusing "This impl block contains no items." with non-public functions
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Code
Reproduction Steps
However the docs on doc.rust-lang.org are built - linking to 1.93.1 version of the reference but present on the latest nightly
Expected Outcome
Perhaps something like (bolding add to indicate change)
This impl block contains no public items.
Actual Output
See https://doc.rust-lang.org/1.93.1/std/ops/enum.ControlFlow.html#impl-ControlFlow%3CR,+%3CR+as+Try%3E::Output%3E - includes a note
This impl block contains no items.
but if you look at the source there are items, they are just pub(crate) which I assume is why they are not shown
Version
rustdoc 1.93.1 (01f6ddf75 2026-02-11)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked impl block in library/core/src/ops/control_flow.rs and compare its private items with the generated ControlFlow documentation at the linked URL. Trace the rustdoc handling that produces the empty-impl note, then verify that the wording distinguishes an impl with no public items from one with no items at all.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- documentation, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100