Skip to content

[rustdoc] Anchors to trait implementations always point to the first #32552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
azerupi opened this issue Mar 28, 2016 · 2 comments
Closed

[rustdoc] Anchors to trait implementations always point to the first #32552

azerupi opened this issue Mar 28, 2016 · 2 comments

Comments

@azerupi
Copy link
Contributor

azerupi commented Mar 28, 2016

The anchors that Rustdoc generates for multiple implementations of a trait (like Add for multiple different rhs) always point to the first implementation.

If you take a look to rust-sfml Vector2f, it implements impl Add<f32> for Vector2f and impl Add for Vector2f. But both anchors are the same:
http://www.rust-sfml.org/doc/rsfml/system/vector2/struct.Vector2f.html#method.add

You can't link to the second implementation...

@azerupi
Copy link
Contributor Author

azerupi commented Mar 28, 2016

OK, my bad :)

Thanks!
On Mar 28, 2016 4:40 PM, "mitaa" notifications@github.com wrote:

This should be fixed (#30036
#30036)

For example:

https://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_ref

https://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_ref-1


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#32552 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants