about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorAaron Kofsky <aaronko@umich.edu>2022-08-04 17:00:48 -0400
committerAaron Kofsky <aaronko@umich.edu>2022-08-04 17:00:48 -0400
commita9f1b7bd2a25e34de29eb88f81550690f4fec5dc (patch)
tree3a5ac965a3c4c7e45af33eb97b258870b1242b0a /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parenta9095ff2139fb305b15006d1f2a1ff16da0b6c29 (diff)
downloadrust-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