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

Fix false positive when Drop and Copy involved in field_reassign_with_default lint #7794

Merged
merged 1 commit into from
Oct 9, 2021

Conversation

ThibsG
Copy link
Contributor

@ThibsG ThibsG commented Oct 9, 2021

Fix FP in field_reassign_with_default lint when type implements Drop but not all fields are Copy.

fixes: #6312

changelog: [field_reassign_with_default] Fix FP when Drop and Copy are involved

@rust-highfive
Copy link

r? @llogiq

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 9, 2021
@llogiq
Copy link
Contributor

llogiq commented Oct 9, 2021

Looks good! I always cheer when we remove false positives. 🥳 Thank you!

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 9, 2021

📌 Commit 7aaed02 has been approved by llogiq

@bors
Copy link
Collaborator

bors commented Oct 9, 2021

⌛ Testing commit 7aaed02 with merge 8f1555f...

@bors
Copy link
Collaborator

bors commented Oct 9, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: llogiq
Pushing 8f1555f to master...

@bors bors merged commit 8f1555f into rust-lang:master Oct 9, 2021
@ThibsG ThibsG deleted the FieldReassignDefault6312 branch October 9, 2021 13:57
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.

field_reassign_with_default could be false positive
4 participants