about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-05-12 07:18:01 +0900
committerGitHub <noreply@github.com>2021-05-12 07:18:01 +0900
commit4ab305031caed3d825616f4d7f131b5700b35810 (patch)
treee997246ea3fe72eac5543e52c3e1377f52575e53 /compiler/rustc_codegen_llvm/src
parent649b385471097fb03bdd204fd4f921eab3feb9c9 (diff)
parentf510e412e93958e099334de22de375d26264e767 (diff)
downloadrust-4ab305031caed3d825616f4d7f131b5700b35810.tar.gz
rust-4ab305031caed3d825616f4d7f131b5700b35810.zip
Rollup merge of #85124 - jsha:trust-the-bool, r=GuillaumeGomez
rustdoc: remove explicit boolean comparisons.

For boolean variables it's shorter and more readable to check the value directly, or negate it with `!`.

In a couple of cases I reordered an if/else pair because it made the initial `if` statement simpler.

An example of a style guide recommending this: https://airbnb.io/javascript/#comparison--shortcuts

r? `@GuillaumeGomez`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions