Skip to content
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

Trait implementation docs list methods that can't be called #32277

Open
shahn opened this issue Mar 16, 2016 · 3 comments
Open

Trait implementation docs list methods that can't be called #32277

shahn opened this issue Mar 16, 2016 · 3 comments
Labels
C-bug Category: This is a bug. E-hard Call for participation: Hard difficulty. Experience needed to fix: A lot. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@shahn
Copy link
Contributor

shahn commented Mar 16, 2016

https://doc.rust-lang.org/std/collections/hash_map/struct.Iter.html lists "cloned" as a method for hash_map::Iter, but it doesn't actually exist because the bound on Item cannot be fulfilled. It does not make sense to list that method there, and actually confused me a lot because I thought I should be able to call it.

@bluss bluss added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Mar 16, 2016
@steveklabnik steveklabnik added T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. and removed T-tools labels May 18, 2017
@Mark-Simulacrum Mark-Simulacrum added the C-bug Category: This is a bug. label Jul 24, 2017
@steveklabnik
Copy link
Member

I believe this has somehow been fixed, I cannot find cloned on that page anymore. Closing!

@steveklabnik
Copy link
Member

oops, I was wrong. It's still there.

@ehuss ehuss removed the T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. label Jan 18, 2022
@lolbinarycat lolbinarycat added the E-hard Call for participation: Hard difficulty. Experience needed to fix: A lot. label Nov 7, 2024
@lolbinarycat
Copy link
Contributor

this would require investigating Self trait bounds, unpacking the associated item bound, and comparing that to the value of the actual associated item.

this seems like it would almost certainly not be worth it, both in terms of implementation complexity and runtime.

although i suppose it could be handy if we ever get trivial_bounds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. E-hard Call for participation: Hard difficulty. Experience needed to fix: A lot. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

6 participants