rust-lang / rust-lang/rust

Confusing listing of trait impls when type names are identical (e.g. `impl<T> From<Range<T>> for Range<T>`)

Open
#154,960 1 comment 2 reactions 1 assignee View on GitHub

@qaijuang is already working on this.

Since May 7, 2026.

C-bug needs-triage T-rustdoc
Dominant language
Rust
Stars
119k
Forks
16.2k
PR merge metrics
PR metrics pending

Description

See https://doc.rust-lang.org/std/range/struct.Range.html#trait-implementations .

Image

impl<T> From<Range<T>> for Range<T> is confusing. It's possible to figure out what it's doing by hovering over the type names and looking where they link to. But it'd be nice to automatically disambiguate trait impls that use ambiguous type names, and write this documentation as something like impl<T> From<ops::Range<T>> for range::Range<T>

Version

rustdoc 1.94.1 (e408947bf 2026-03-25)

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.