about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-04-01 21:14:32 +0000
committerbors <bors@rust-lang.org>2024-04-01 21:14:32 +0000
commit95c45be1ed6f1f2025a3c7c806ffca9f9ad18ed2 (patch)
tree597ef9f1978b8441f2ef71f073783d5169a287dd /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent2b30a5924e1fcc3fcba940e55ece26d73fe16d3c (diff)
parenteee4db928fa745fba934e008be01765c22abb4de (diff)
downloadrust-95c45be1ed6f1f2025a3c7c806ffca9f9ad18ed2.tar.gz
rust-95c45be1ed6f1f2025a3c7c806ffca9f9ad18ed2.zip
Auto merge of #12603 - m-rph:12594, r=Manishearth
Elide unit variables linted by `let_unit` and use `()` directly instead

Situation: `let_unit` lints when an expression binds a unit (`()`) to a variable. In some cases this binding may be passed down to another function. Currently, the lint removes the binding without considering usage.

fixes: #12594

changelog: Suggestion Fix [`let_unit`]. Clippy will remove unit bindings and replace all their instances in the body with `()`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions