Skip to content

Conversation

@ada4a
Copy link
Contributor

@ada4a ada4a commented Nov 18, 2025

Resolves #15392
Resurrection of #15688

changelog: [explicit_deref_methods]: don't lint in impl Deref(Mut)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Nov 18, 2025
@rustbot
Copy link
Collaborator

rustbot commented Nov 18, 2025

r? @samueltardieu

rustbot has assigned @samueltardieu.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@github-actions
Copy link

github-actions bot commented Nov 18, 2025

Lintcheck changes for 81ce47a

Lint Added Removed Changed
clippy::explicit_deref_methods 0 1 0

This comment will be updated if you push new changes

Comment on lines 175 to 181
/// 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>,
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, removed

@ada4a ada4a force-pushed the 15392-explicit_deref_methods branch from e2a228b to abd09bf Compare November 19, 2025 17:38
@ada4a
Copy link
Contributor Author

ada4a commented Nov 19, 2025

@rustbot ready

@ada4a ada4a force-pushed the 15392-explicit_deref_methods branch from abd09bf to 22c4a6b Compare November 19, 2025 17:50
@ada4a
Copy link
Contributor Author

ada4a commented Nov 20, 2025

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?

@samueltardieu
Copy link
Member

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)?

@samueltardieu samueltardieu added this pull request to the merge queue Nov 20, 2025
@samueltardieu samueltardieu removed this pull request from the merge queue due to a manual request Nov 20, 2025
@samueltardieu
Copy link
Member

I could add it to the queue, but I would prefer to see the lintcheck result first.

@ada4a ada4a force-pushed the 15392-explicit_deref_methods branch from 22c4a6b to 81ce47a Compare November 21, 2025 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow explicit_deref_methods in Deref impls

3 participants