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

Rustdoc inlined Deref impls should not include static methods. #24575

Closed
Stebalien opened this issue Apr 18, 2015 · 2 comments · Fixed by #24657
Closed

Rustdoc inlined Deref impls should not include static methods. #24575

Stebalien opened this issue Apr 18, 2015 · 2 comments · Fixed by #24657
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@Stebalien
Copy link
Contributor

As of #24396, rustdoc inlines Deref impls (:smiley:). However, static methods are also included. Static methods probably shouldn't be included as they can't be called through Deref. They also appear to mess with search results.

@steveklabnik steveklabnik added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Apr 18, 2015
@aochagavia
Copy link
Contributor

What about methods that take &mut self? Should we hide those too?

@alexcrichton
Copy link
Member

@aochagavia nah I think including those is fine because they are applicable to a DerefMut implementation. In theory the "most correct" thing to do would be to detect whether DerefMut is implemented or not but it's also fine to not do that for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants