Generate more descriptive paths for items which have the same name in Rustdoc #74924
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Currently rustdoc does not attempt to disambiguate between traits which have the same name and are used somewhere, say, implemented traits. This makes for an interesting time trying to figure out what it is actually implementing at a glance. The best example ive found is serde libraries and their Error struct: https://docs.serde.rs/serde_json/struct.Error.html#trait-implementations
It is not very easy to see what it is implementing at a glance. This could likely be solved by seeing if multiple names clash in the same "section" and if so, generating the full path. In which case it would generate something along the lines of
#73996 Could offer insights into how to implement this too.
The text was updated successfully, but these errors were encountered: