about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorAlejandra González <blyxyas@gmail.com>2025-08-06 17:59:23 +0000
committerGitHub <noreply@github.com>2025-08-06 17:59:23 +0000
commit4cb43f4c4128ed1f58d10ade425656caa2a05fa7 (patch)
tree5226a520c71395e2b0b51e6ee3d409e9a9222047 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parenta4d43215b89819941f92c3ef5156de64c43d4a7b (diff)
parent8602faa6ffa6aca71470b734459c2805f106c8f2 (diff)
downloadrust-4cb43f4c4128ed1f58d10ade425656caa2a05fa7.tar.gz
rust-4cb43f4c4128ed1f58d10ade425656caa2a05fa7.zip
Optimize `needless_bool` lint (#15423)
Two optimizations have been done when checking for the context in which
to apply the lint:

- Checking for the mere presence of comments does not require building a
`String` with the comment to then check if it is empty and discard it.
- Checking for the presence of comment can be done after we have checked
that we do have a `if` construct that we intend to lint instead of for
every expression.

changelog: none

r? blyxyas
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions