diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2025-08-11 21:36:35 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2025-08-11 21:38:44 +0000 |
| commit | 86853b375809caf75ce321e1297ff509e4993fcf (patch) | |
| tree | 852a46ad2e23dd4928c10ba265ce006861c8a5ce /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 577166503aee7290e09374da21f4045c455acfd5 (diff) | |
| download | rust-86853b375809caf75ce321e1297ff509e4993fcf.tar.gz rust-86853b375809caf75ce321e1297ff509e4993fcf.zip | |
Account for new `assert!` desugaring in `!condition` suggestion
`rustc` 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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions
