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

suppress readonly_write_lock for underscore-prefixed bindings #12734

Merged
merged 1 commit into from Apr 29, 2024

Conversation

y21
Copy link
Member

@y21 y21 commented Apr 29, 2024

Fixes #12733

Unsure if there's a better way to prevent this kind of false positive but this is the one that made most sense to me.
In my experience, prefixing bindings with an underscore is the usual way to name variables that aren't used and that exist purely for executing drop code at the end of the scope.


changelog: suppress [readonly_write_lock] for underscore-prefixed bindings

@rustbot
Copy link
Collaborator

rustbot commented Apr 29, 2024

r? @Manishearth

rustbot has assigned @Manishearth.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Apr 29, 2024
Copy link

@paologallinaharbur paologallinaharbur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My approval does not count, however thanks for taking care of this!

@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Apr 29, 2024

📌 Commit f0beaed has been approved by Manishearth

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Apr 29, 2024

⌛ Testing commit f0beaed with merge 4261e0b...

@bors
Copy link
Collaborator

bors commented Apr 29, 2024

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Manishearth
Pushing 4261e0b to master...

@bors bors merged commit 4261e0b into rust-lang:master Apr 29, 2024
5 checks passed
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.

Issues with readonly_write_lock
5 participants