-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(explicit_deref_methods): don't lint in impl Deref(Mut)
#16113
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
base: master
Are you sure you want to change the base?
Conversation
|
rustbot has assigned @samueltardieu. Use |
|
Lintcheck changes for 81ce47a
This comment will be updated if you push new changes |
clippy_lints/src/dereference.rs
Outdated
| /// The outermost `impl Deref` we're currently in. While we're in one, | ||
| /// `explicit_deref_methods` is deactivated for `deref` | ||
| outermost_deref_impl: Option<OwnerId>, | ||
|
|
||
| /// The outermost `impl DerefMut` we're currently in. While we're in one, | ||
| /// `explicit_deref_methods` is deactivated for `deref_mut` | ||
| outermost_derefmut_impl: Option<OwnerId>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not keep only one of them? The lint description says it doesn't lint inside Deref or DerefMut implementation, so that would be enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, removed
e2a228b to
abd09bf
Compare
|
@rustbot ready |
abd09bf to
22c4a6b
Compare
|
The CI failure is caused by actions/download-artifact#381, but it seems to happen only some of the time. Therefore, rerunning CI should help, but apparently I don't have the rights to do that -- could you do it please? |
I've run it again, but it didn't solve it. Can you do a no-op push (just reset the committer date for example and force push)? |
|
I could add it to the queue, but I would prefer to see the lintcheck result first. |
22c4a6b to
81ce47a
Compare
Resolves #15392
Resurrection of #15688
changelog: [
explicit_deref_methods]: don't lint inimpl Deref(Mut)