Skip to content
Navigation Menu
Toggle navigation
Sign in
Appearance settings
Platform
GitHub Copilot
Write better code with AI
GitHub Spark
New
Build and deploy intelligent apps
GitHub Models
New
Manage and compare prompts
GitHub Advanced Security
Find and fix vulnerabilities
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Discussions
Collaborate outside of code
Code Search
Find more, search less
Explore
Why GitHub
Documentation
GitHub Skills
Blog
Integrations
GitHub Marketplace
MCP Registry
View all features
Solutions
By company size
Enterprises
Small and medium teams
Startups
Nonprofits
By use case
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
By industry
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
Topics
AI
DevOps
Security
Software Development
View all
Explore
Learning Pathways
Events & Webinars
Ebooks & Whitepapers
Customer Stories
Partners
Executive Insights
Open Source
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
Topics
Trending
Collections
Enterprise
Enterprise platform
AI-powered developer platform
Available add-ons
GitHub Advanced Security
Enterprise-grade security features
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
is:issue only_used_in_recursion
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Appearance settings
Resetting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
rust-lang
/
rust-clippy
Public
Notifications
You must be signed in to change notification settings
Fork
1.8k
Star
12.5k
Code
Issues
2.3k
Pull requests
181
Discussions
Actions
Projects
0
Wiki
Security
Uh oh!
There was an error while loading.
Please reload this page
.
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security
Insights
Most commonly ignored lints on crates.io
#7666 ·
dtolnay
opened
on Sep 13, 2021
23
Issues
Search Issues
is
:
issue
only_used_in_recursion
is:issue only_used_in_recursion
Search
Labels
Milestones
New issue
Search results
Open
Closed
[PERF] Instantiations are getting too far
G-performance-project
Goal: For issues and PRs related to the Clippy Performance Project
Goal: For issues and PRs related to the Clippy Performance Project
Status: Open.
#14902
In rust-lang/rust-clippy;
·
blyxyas
opened
on May 26, 2025
False positive for only_used_in_recursion for trait implementations
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Open.
#14566
In rust-lang/rust-clippy;
·
DerGut
opened
on Apr 8, 2025
<code>clippy::only_used_in_recursion</code> considers <code>self</code>, but <code>unused_variables</code> does not
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Closed (completed).
#10370
In rust-lang/rust-clippy;
·
by
PatchMixolydic
was closed
on Sep 19, 2025
Wrong lint warn "used only in recursion"
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Closed (completed).
#9565
In rust-lang/rust-clippy;
·
by
guerinoni
was closed
on Oct 1, 2022
False positive on only_used_in_recursion
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Closed (completed).
#9384
In rust-lang/rust-clippy;
·
by
didibear
was closed
on Sep 20, 2022
Improve only_used_in_recursion lint/testing
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
Category: Enhancement of lints, like adding more cases or adding help messages
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
Call for participation: Medium difficulty level problem and requires some initial experience.
E-needs-test
Call for participation: writing tests
Call for participation: writing tests
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Closed (completed).
#8782
In rust-lang/rust-clippy;
·
by
flip1995
was closed
on Aug 19, 2022
Infinite loop in <code>clippy::only_used_in_recursion</code>
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-ICE
Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️
Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️
Status: Closed (completed).
#8689
In rust-lang/rust-clippy;
·
by
emgre
was closed
on Apr 12, 2022
parameter only used in recursion false positive
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Closed (completed).
#8629
In rust-lang/rust-clippy;
·
by
hellow554
was closed
on Aug 19, 2022
Implementation of trait method using method with same name in foreign module triggers <code>only_used_in_recursion</code> false positive
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Closed (completed).
#8560
In rust-lang/rust-clippy;
·
by
bhgomes
was closed
on Aug 19, 2022
Only using a parameter in a macro call followed by an assignment causes the only_used_in_recursion lint to trigger
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Issue: The lint was triggered on code it shouldn't have
Status: Closed (completed).
#8556
In rust-lang/rust-clippy;
·
by
ghost
was closed
on Aug 19, 2022
New Lint: function argument only used in recursion
A-lint
Area: New lints
Area: New lints
Status: Closed (completed).
#8390
In rust-lang/rust-clippy;
·
by
buttercrab
was closed
on Mar 13, 2022
You can’t perform that action at this time.