rust/clippy_lints
bors 407bfd483a 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
2023-06-26 00:42:38 +00:00
..
src Auto merge of #11005 - Centri3:never_loop, r=giraffate 2023-06-26 00:42:38 +00:00
Cargo.toml Add lint to check lint formulation messages 2023-06-03 00:00:30 +05:30
README.md

This crate contains Clippy lints. For the main crate, check GitHub.