os-rust/compiler/rustc_mir_build
Zalathar 35a8746832 coverage: Instrument the RHS value of lazy logical operators
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.
2024-05-30 15:38:46 +10:00
..
src coverage: Instrument the RHS value of lazy logical operators 2024-05-30 15:38:46 +10:00
Cargo.toml Match ergonomics 2024: migration lint 2024-05-12 11:13:33 -04:00
messages.ftl Auto merge of #124661 - RalfJung:only-structural-consts-in-patterns, r=pnkfelix 2024-05-26 07:55:47 +00:00