Confusing listing of trait impls when type names are identical (e.g. `impl<T> From<Range<T>> for Range<T>`)
Open
@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 .
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
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.
Assessment
This issue has not been assessed yet.