diff options
| author | bors <bors@rust-lang.org> | 2024-04-29 22:40:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-04-29 22:40:30 +0000 |
| commit | 4261e0b28d3a98565f2fd55acf80a197774934cb (patch) | |
| tree | 839185a3703004e4a9506f42a5295bd452539343 /compiler/rustc_codegen_gcc | |
| parent | 70e74b11daca702649cae80969c0bc14de24ae3c (diff) | |
| parent | f0beaedf832c574042bb8ec1957e462b97373758 (diff) | |
| download | rust-4261e0b28d3a98565f2fd55acf80a197774934cb.tar.gz rust-4261e0b28d3a98565f2fd55acf80a197774934cb.zip | |
Auto merge of #12734 - y21:issue12733, r=Manishearth
suppress `readonly_write_lock` for underscore-prefixed bindings 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
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
