about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-08-12 20:37:57 +1000
committerGitHub <noreply@github.com>2025-08-12 20:37:57 +1000
commit2102eebd56537c6adb4d4e12cfaf7d19c4979b84 (patch)
tree316ac4d6bddaf533f6c0dd5a66e1c7c19375c714 /compiler/rustc_codegen_llvm/src/builder.rs
parent0264abc065941f4b12e5dd3dc20bdd903a1de1ac (diff)
parent86853b375809caf75ce321e1297ff509e4993fcf (diff)
downloadrust-2102eebd56537c6adb4d4e12cfaf7d19c4979b84.tar.gz
rust-2102eebd56537c6adb4d4e12cfaf7d19c4979b84.zip
Rollup merge of #145273 - estebank:not-not, r=samueltardieu
Account for new `assert!` desugaring in `!condition` suggestion

`rustc` in https://github.com/rust-lang/rust/pull/122661 is going to change the desugaring of `assert!` to be

```rust
match condition {
    true => {}
    _ => panic!(),
}
```
which will make the edge-case of `condition` being `impl Not<Output = bool>` while not being `bool` itself no longer a straightforward suggestion, but `!!condition` will coerce the expression to be `bool`, so it can be machine applicable.

Transposing https://github.com/rust-lang/rust-clippy/pull/15453/ to the rustc repo.

r? `````@samueltardieu`````
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions