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 clone_on_copy
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
183
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
clone_on_copy
is:issue clone_on_copy
Search
Labels
Milestones
New issue
Search results
Open
Closed
<code>clone_on_copy</code> gives wrong suggestion, causes error
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
E-hard
Call for participation: This a hard problem and requires more experience or effort to work on
Call for participation: This a hard problem and requires more experience or effort to work on
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
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Status: Open.
#15610
In rust-lang/rust-clippy;
·
teofr
opened
on Sep 4, 2025
Fixes for <code>from_over_into</code> and <code>clone_on_copy</code> conflict and lead to compiler error
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Status: Closed (completed).
#13549
In rust-lang/rust-clippy;
·
by
saites
was closed
on Nov 2, 2024
<code>clippy::clone_on_copy</code> following recommendation on lock guards can lead to dead locks
S-triage
Status: PR was triaged and is waiting for an action from a maintainer (closing/moving/... the PR)
Status: PR was triaged and is waiting for an action from a maintainer (closing/moving/... the PR)
Status: Open.
#12957
In rust-lang/rust-clippy;
·
juliusl
opened
on Jun 19, 2024
Compiler errors after clippy fixes. Maybe issue with WebAssembly attribute.
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Status: Open.
#12932
In rust-lang/rust-clippy;
·
PaulXiCao
opened
on Jun 14, 2024
lints to disable in tests
L-tests
Lint: Lints test code
Lint: Lints test code
Status: Open.
#12581
In rust-lang/rust-clippy;
·
ijackson
opened
on Mar 28, 2024
Problem with cargo clippy --fix
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
Status: Open.
#10718
In rust-lang/rust-clippy;
·
holtgrewe
opened
on Mar 7, 2023
clippy::clone_on_copy fix on code with <code>?</code> leads to code with wrong operator precedence
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Status: Closed (completed).
#9277
In rust-lang/rust-clippy;
·
by
SillyFreak
was closed
on Aug 3, 2022
Most commonly ignored lints on crates.io
A-category
Area: Categorization of lints
Area: Categorization of lints
C-tracking-issue
Category: Tracking Issue
Category: Tracking Issue
S-needs-discussion
Status: Needs further discussion before merging or work can be started
Status: Needs further discussion before merging or work can be started
Status: Closed (completed).
#7666
In rust-lang/rust-clippy;
·
by
dtolnay
was closed
on Oct 9, 2022
Cargo clone_on_copy false positive or bad suggestion
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
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Status: Open.
#7414
In rust-lang/rust-clippy;
·
alan-signal
opened
on Jun 30, 2021
[Roadmap] Lint groups
A-category
Area: Categorization of lints
Area: Categorization of lints
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
C-tracking-issue
Category: Tracking Issue
Category: Tracking Issue
P-low
Priority: Low
Priority: Low
Status: Open.
#6626
In rust-lang/rust-clippy;
·
flip1995
opened
on Jan 22, 2021
Move the <code>clone_on_copy</code> lint from the complexity group to the style group?
C-question
Category: Questions
Category: Questions
Status: Open.
#6210
In rust-lang/rust-clippy;
·
camelid
opened
on Oct 24, 2020
False negative clone-on-copy
C-bug
Category: Clippy is not doing the correct thing
Category: Clippy is not doing the correct thing
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.
Status: Closed (completed).
#5436
In rust-lang/rust-clippy;
·
by
p3s
was closed
on Apr 10, 2020
You can’t perform that action at this time.