Intra-doc links choose a random method if there are multiple implementations of the same generic trait #76895
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-intra-doc-links
Area: Intra-doc links, the ability to link to items in docs by name
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
This is case three from #74489.
If a type implements a trait that's generic and implemented multiple times with different generic parameters, then rustdoc generates the same link for each. For example,
[String::from]
resolves to https://doc.rust-lang.org/nightly/alloc/string/struct.String.html#method.from.However, every
From
implementation onString
has a method called from! So the browser picks a random one.This requires two fixes:
#method.from
it generates to distinguish the different functions in the browserThe text was updated successfully, but these errors were encountered: