diff options
| author | bors <bors@rust-lang.org> | 2024-04-01 21:14:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-04-01 21:14:32 +0000 |
| commit | 95c45be1ed6f1f2025a3c7c806ffca9f9ad18ed2 (patch) | |
| tree | 597ef9f1978b8441f2ef71f073783d5169a287dd /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 2b30a5924e1fcc3fcba940e55ece26d73fe16d3c (diff) | |
| parent | eee4db928fa745fba934e008be01765c22abb4de (diff) | |
| download | rust-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
