mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
407bfd483a
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 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |