diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-08-06 18:50:32 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-08-06 19:49:22 +0200 |
| commit | 8602faa6ffa6aca71470b734459c2805f106c8f2 (patch) | |
| tree | 5226a520c71395e2b0b51e6ee3d409e9a9222047 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | a4d43215b89819941f92c3ef5156de64c43d4a7b (diff) | |
| download | rust-8602faa6ffa6aca71470b734459c2805f106c8f2.tar.gz rust-8602faa6ffa6aca71470b734459c2805f106c8f2.zip | |
Optimize `needless_bool` lint
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
