Skip to content

Conversation

JustusFluegel
Copy link

@JustusFluegel JustusFluegel commented Sep 7, 2025

Adds a is_from_proc_macro(...,...) check to the explicit_deref_methods lint.

Note that this is my first contribution to clippy and i am not 100% sure that this is how such bugs are intended to be fixed, so please be kind with any feedback, I appreciate that a lot! Thanks!

changelog: [explicit_deref_methods]: no longer triggers from within proc macro expansions

fixes #15168

@rustbot
Copy link
Collaborator

rustbot commented Sep 7, 2025

r? @Alexendoo

rustbot has assigned @Alexendoo.
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

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 7, 2025
@rustbot

This comment has been minimized.

@rustbot
Copy link
Collaborator

rustbot commented Sep 12, 2025

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@JustusFluegel
Copy link
Author

JustusFluegel commented Sep 12, 2025

I rebased ontop of latest main master at the time of writing :)

@JustusFluegel
Copy link
Author

Sorry it took a while but finally got around to adding the comment. If anyone has any further review comments, they are very welcome :)

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.

explicit_deref_methods triggering from within macros
4 participants