about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
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
commit12087f1d097d8ee3acdb388833e375b8e0f00b4e (patch)
treeef8fe83bf34a0461630b75948c3875ff308c5b24 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent2dd72089d6919dd124f09acba00cdd938a92a396 (diff)
parentc8c483df27180b6e8013088de986da8cbd74314d (diff)
downloadrust-12087f1d097d8ee3acdb388833e375b8e0f00b4e.tar.gz
rust-12087f1d097d8ee3acdb388833e375b8e0f00b4e.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_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions