diff options
| author | Aaron Kofsky <aaronko@umich.edu> | 2022-08-04 17:00:48 -0400 |
|---|---|---|
| committer | Aaron Kofsky <aaronko@umich.edu> | 2022-08-04 17:00:48 -0400 |
| commit | a9f1b7bd2a25e34de29eb88f81550690f4fec5dc (patch) | |
| tree | 3a5ac965a3c4c7e45af33eb97b258870b1242b0a /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | a9095ff2139fb305b15006d1f2a1ff16da0b6c29 (diff) | |
| download | rust-a9f1b7bd2a25e34de29eb88f81550690f4fec5dc.tar.gz rust-a9f1b7bd2a25e34de29eb88f81550690f4fec5dc.zip | |
Explain why let-underscoring a lock guard is incorrect.
Currently, the let_underscore_lock lint simply tells what is wrong, but not why it is wrong. We fix this by using a `MultiSpan` to explain specifically that doing `let _ = ` immediately drops the lock guard because it does not assign the lock guard to a binding.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
