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

Consider auto-deref when linting manual_swap #8220

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Jan 4, 2022

fixes #8154

changelog: Don't lint manual_swap when a field access involves auto-deref

@rust-highfive
Copy link

r? @camsteffen

(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 Jan 4, 2022
clippy_utils/src/lib.rs Outdated Show resolved Hide resolved
@camsteffen
Copy link
Contributor

r=me with squash and passing CI

@camsteffen
Copy link
Contributor

Thanks! @bors r+

@bors
Copy link
Contributor

bors commented Jan 4, 2022

📌 Commit a7097b8 has been approved by camsteffen

@bors
Copy link
Contributor

bors commented Jan 4, 2022

⌛ Testing commit a7097b8 with merge 0e28e38...

@bors
Copy link
Contributor

bors commented Jan 4, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: camsteffen
Pushing 0e28e38 to master...

@bors bors merged commit 0e28e38 into rust-lang:master Jan 4, 2022
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.

manual_swap suggests invalid multiple mutable borrow
4 participants