about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-26 00:42:38 +0000
committerbors <bors@rust-lang.org>2023-06-26 00:42:38 +0000
commit407bfd483ade0a5f8a0e0978a924b067557a121c (patch)
tree5ea6386c03d95d324cb4174cdc8192e8f588c374 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent78e36d9f53d8afe2062a3e6ea95f5f638ffd44be (diff)
parent6a1084c26fdd9653c0b8940bc5d3894ec9bb7d9d (diff)
downloadrust-407bfd483ade0a5f8a0e0978a924b067557a121c.tar.gz
rust-407bfd483ade0a5f8a0e0978a924b067557a121c.zip
Auto merge of #11005 - Centri3:never_loop, r=giraffate
Check if `if` conditions always evaluate to true in `never_loop`

This fixes the example provided in #11004, but it shouldn't be closed as this is still an issue on like
```rust
let x = true;
if x { /* etc */ }`
```
This also makes `clippy_utils::consts::constant` handle `ConstBlock` and `DropTemps`.

changelog: [`never_loop`]: Check if `if` conditions always evaluate to true
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions