mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 14:00:56 +00:00
When MIR is built for an if-not expression, the `!` part of the condition doesn't correspond to any MIR statement, so coverage instrumentation normally can't see it. We can fix that by deliberately injecting a dummy statement whose sole purpose is to associate that span with its enclosing block.