diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-08-12 20:37:57 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-12 20:37:57 +1000 |
| commit | 12087f1d097d8ee3acdb388833e375b8e0f00b4e (patch) | |
| tree | ef8fe83bf34a0461630b75948c3875ff308c5b24 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 2dd72089d6919dd124f09acba00cdd938a92a396 (diff) | |
| parent | c8c483df27180b6e8013088de986da8cbd74314d (diff) | |
| download | rust-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
