mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
35a8746832
When a lazy logical operator (`&&` or `||`) occurs outside of an `if` condition, it normally doesn't have any associated control-flow branch, so we don't have an existing way to track whether it was true or false. This patch adds special code to handle this case, by inserting extra MIR blocks in a diamond shape after evaluating the RHS. This gives us a place to insert the appropriate marker statements, which can then be given their own counters. |
||
---|---|---|
.. | ||
conditions.cov-map | ||
conditions.coverage | ||
conditions.rs |