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 | c8c483df27180b6e8013088de986da8cbd74314d (patch) | |
| tree | af77f5fda2b03bd84416d9117ace4476684c4692 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | a5469b8b4a29c4c57d3c5833a2f946537666d898 (diff) | |
| download | rust-c8c483df27180b6e8013088de986da8cbd74314d.tar.gz rust-c8c483df27180b6e8013088de986da8cbd74314d.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_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
