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 | 2102eebd56537c6adb4d4e12cfaf7d19c4979b84 (patch) | |
| tree | 316ac4d6bddaf533f6c0dd5a66e1c7c19375c714 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 0264abc065941f4b12e5dd3dc20bdd903a1de1ac (diff) | |
| parent | 86853b375809caf75ce321e1297ff509e4993fcf (diff) | |
| download | rust-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
