-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New lint: borrow_mutable_copy
#13984
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
base: master
Are you sure you want to change the base?
Conversation
a881f75
to
1ac5de7
Compare
1ac5de7
to
f521ce9
Compare
Rebased |
f521ce9
to
9e3a25e
Compare
Rebased |
r? @Clippy |
9e3a25e
to
5a08c09
Compare
Rebased |
5a08c09
to
0de459a
Compare
Rebased |
0de459a
to
7b849af
Compare
@flip1995 Anything else needs to be done? |
I guess the FCP on Zulip. Feel free to start that :) |
410fe93
to
b0e27cc
Compare
eac9c71
to
5309578
Compare
copy_then_borrow_mut
borrow_mutable_copy
Reminder, once the PR becomes ready for a review, use |
ec135bc
to
db0bb45
Compare
I've put it back into suspicious, with |
@rustbot ready |
This comment has been minimized.
This comment has been minimized.
db0bb45
to
82bb1de
Compare
Rebased |
This comment has been minimized.
This comment has been minimized.
82bb1de
to
8b35938
Compare
Rebased |
This comment has been minimized.
This comment has been minimized.
8b35938
to
311ffff
Compare
Should I close this or will it be merged? |
311ffff
to
667283a
Compare
Updated Rust version to 1.90.0. |
This comment has been minimized.
This comment has been minimized.
667283a
to
d25a0c6
Compare
This comment has been minimized.
This comment has been minimized.
r? clippy |
☔ The latest upstream changes (possibly #15731) made this pull request unmergeable. Please resolve the merge conflicts. |
d25a0c6
to
898f545
Compare
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
This detects when the result of a block, with a
Copy
type, is borrowed mutably. The user might not be aware that using a block will borrow a copy instead of the value expression itself.changelog: [
borrow_mutable_copy
]: new lintClose #13967