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: Filter more incorrect methods inherited through Deref #36266

Merged
merged 1 commit into from
Sep 7, 2016

Conversation

Sawyer47
Copy link
Contributor

@Sawyer47 Sawyer47 commented Sep 4, 2016

Old code filtered out only static methods. This code also excludes &mut self methods if there is no DerefMut implementation.

Fixes #35169

@rust-highfive
Copy link
Collaborator

r? @steveklabnik

(rust_highfive has picked a reviewer for you, use r? to override)

SelfTy::SelfBorrowed(_lifetime, mutability) => {
deref_mut_ || mutability == Mutability::Immutable
},
SelfTy::SelfExplicit(_) => false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also matches things like self: &Self, self: &Foo, self: &mut Self, self: &mut Foo, self: Self and self: Foo which we don't want to remove.

Old code filtered out only static methods. This code also excludes
&mut self methods if there is no DerefMut implementation
@GuillaumeGomez
Copy link
Member

👍

Waiting for @steveklabnik's confirmation.

@GuillaumeGomez
Copy link
Member

cc @alexcrichton

@steveklabnik
Copy link
Member

Seems like a good idea to me, I wonder what alex thinks.

@alexcrichton
Copy link
Member

@bors: r+ 915bbda

Thanks!

@bors
Copy link
Contributor

bors commented Sep 7, 2016

⌛ Testing commit 915bbda with merge 9627e9e...

bors added a commit that referenced this pull request Sep 7, 2016
rustdoc: Filter more incorrect methods inherited through Deref

Old code filtered out only static methods. This code also excludes &mut self methods if there is no DerefMut implementation.

Fixes #35169
@bors bors merged commit 915bbda into rust-lang:master Sep 7, 2016
@bluss bluss added the relnotes Marks issues that should be documented in the release notes of the next release. label Sep 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relnotes Marks issues that should be documented in the release notes of the next release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants