rust-lang / rust-lang/rust

Trait impl list should indicate and link to impl items when additional documentation is available

Open
#118,329 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-rustdoc-ui T-rustdoc
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

For example on the trait Sum page the impl<T, U> Sum<Option<U>> for Option<T> shows no documentation or indication that additional documentation is available.
Compare to the same impl on the Option struct page which has a method with doc comments.

Implementations can specify additional behavior that goes beyond what is promised by the trait itself, which can be important to know that such additional documentation exists.

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

Compare the linked Sum trait page with the linked Option page, focusing on how the impl list exposes additional documentation. Find the rustdoc entry point and relevant tests for rendering impl lists, then make the trait-page entry indicate and link to available impl documentation; the two pages should provide consistent discoverability.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.