about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-01-04 12:45:51 +0000
committerbors <bors@rust-lang.org>2021-01-04 12:45:51 +0000
commitdd1929e1f23ddbc9693db1ea5886a83c6179f311 (patch)
tree04e564d863cd453f5494541cfd3125621c7a1293 /compiler/rustc_llvm/llvm-wrapper
parent895191628d6eda2be70f304a69ddb728a912f696 (diff)
parent6dcec6ae863930b7056a68744759d2bfb3481f92 (diff)
downloadrust-dd1929e1f23ddbc9693db1ea5886a83c6179f311.tar.gz
rust-dd1929e1f23ddbc9693db1ea5886a83c6179f311.zip
Auto merge of #6544 - matthiaskrgr:else_if, r=flip1995
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')
0 files changed, 0 insertions, 0 deletions