about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-08-11 21:36:35 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-08-11 21:38:44 +0000
commitc8c483df27180b6e8013088de986da8cbd74314d (patch)
treeaf77f5fda2b03bd84416d9117ace4476684c4692 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parenta5469b8b4a29c4c57d3c5833a2f946537666d898 (diff)
downloadrust-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