about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorAaron Kofsky <aaronko@umich.edu>2022-05-31 14:05:04 -0400
committerAaron Kofsky <aaronko@umich.edu>2022-06-04 15:34:02 -0400
commitad7587fedcf29a6629e0218f0e180ddf8960461d (patch)
tree6c84dea72c06215dfa36d5597852d5716461ffaa /tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff
parent821b32bd406e9c29b2e9ca2a647d30021cff653d (diff)
downloadrust-ad7587fedcf29a6629e0218f0e180ddf8960461d.tar.gz
rust-ad7587fedcf29a6629e0218f0e180ddf8960461d.zip
Add `let_underscore_lock` lint.
Similar to `let_underscore_drop`, this lint checks for statements similar
to `let _ = foo`, where `foo` is a lock guard. These types of let
statements are especially problematic because the lock gets released
immediately, instead of at the end of the scope. This behavior is almost
always the wrong thing.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions