rust/tests
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
..
test_utils
ui Auto merge of #11005 - Centri3:never_loop, r=giraffate 2023-06-26 00:42:38 +00:00
ui-cargo
ui-internal
ui-toml allow safety comment above attributes 2023-06-19 23:46:57 -05:00
workspace_test Fix false positive of [self_named_module_files] and [mod_module_files] 2023-06-18 09:04:59 +08:00
check-fmt.rs
clippy.toml
compile-test.rs
dogfood.rs
headers.rs
integration.rs
lint_message_convention.rs
missing-test-files.rs
versioncheck.rs
workspace.rs Fix false positive of [self_named_module_files] and [mod_module_files] 2023-06-18 09:04:59 +08:00