diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-01-04 08:25:38 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2021-01-04 13:34:14 +0100 |
| commit | 6dcec6ae863930b7056a68744759d2bfb3481f92 (patch) | |
| tree | 04e564d863cd453f5494541cfd3125621c7a1293 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 895191628d6eda2be70f304a69ddb728a912f696 (diff) | |
| download | rust-6dcec6ae863930b7056a68744759d2bfb3481f92.tar.gz rust-6dcec6ae863930b7056a68744759d2bfb3481f92.zip | |
collapsible_if: split collapsible_else_if into its own lint so we can enable/disable it particularly
This splits up clippy::collapsible_if into collapsible_if for
if x {
if y { }
}
=>
if x && y { }
and collapsible_else_if for
if x {
} else {
if y { }
}
=>
if x {
} else if y {
}
so that we can lint for only the latter but not the first if we desire.
changelog: collapsible_if: split up linting for if x {} else { if y {} } into collapsible_else_if lint
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
