Skip to content
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

Check for clone-on-copy in argument positions #5441

Merged
merged 1 commit into from
Apr 10, 2020

Conversation

rabisg0
Copy link
Contributor

@rabisg0 rabisg0 commented Apr 9, 2020

Earlier if arguments to method calls matched the above pattern they were
not reported. This patch ensures such arguments are checked as well.

Fixes #5436

changelog: apply clone_on_copy lint to func args as well

Earlier if arguments to method calls matched the above pattern they were
not reported. This patch ensures such arguments are checked as well.

Fixes rust-lang#5436
@phansch
Copy link
Member

phansch commented Apr 10, 2020

LGTM, thanks!

@bors r+

@bors
Copy link
Contributor

bors commented Apr 10, 2020

📌 Commit 183c4ab has been approved by phansch

@bors
Copy link
Contributor

bors commented Apr 10, 2020

⌛ Testing commit 183c4ab with merge 5e8c0c5...

@bors
Copy link
Contributor

bors commented Apr 10, 2020

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: phansch
Pushing 5e8c0c5 to master...

@bors bors merged commit 5e8c0c5 into rust-lang:master Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False negative clone-on-copy
3 participants