Skip to content

Add clippy::self_only_used_in_recursion lint #14787

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pommicket
Copy link

@pommicket pommicket commented May 12, 2025

and use it instead of clippy::only_used_in_recursion when the parameter in question is self.

Fixes #10370

changelog: [only_used_in_recursion]: Don't lint if parameter is self; add pedantic self_only_used_in_recursion lint.

@rustbot
Copy link
Collaborator

rustbot commented May 12, 2025

r? @dswij

rustbot has assigned @dswij.
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 May 12, 2025
@dswij
Copy link
Member

dswij commented Jun 5, 2025

r? clippy

@rustbot rustbot assigned llogiq and unassigned dswij Jun 5, 2025
@pommicket pommicket force-pushed the self_only_used_in_recursion branch 2 times, most recently from a59c129 to cc321f8 Compare June 6, 2025 14:30
@pommicket pommicket requested a review from samueltardieu June 14, 2025 21:41
@pommicket pommicket force-pushed the self_only_used_in_recursion branch from cc321f8 to de3eac5 Compare July 4, 2025 15:16
@llogiq
Copy link
Contributor

llogiq commented Jul 6, 2025

Since Samuel has already given a basic review, r? @samueltardieu

@rustbot rustbot assigned samueltardieu and unassigned llogiq Jul 6, 2025
@samueltardieu samueltardieu added the A-lint Area: New lints label Jul 11, 2025
and use it instead of clippy::only_used_in_recursion
when the parameter in question is self.
@pommicket pommicket force-pushed the self_only_used_in_recursion branch from de3eac5 to e240635 Compare August 11, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: New lints 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.

clippy::only_used_in_recursion considers self, but unused_variables does not
5 participants