996bdabc2a
Functions currently can't have mappings in multiple files, and if that ever changes (e.g. to properly support expansion regions), this code will need to be completely overhauled anyway.
17 lines
376 B
Diff
17 lines
376 B
Diff
- // MIR for `bar` before InstrumentCoverage
|
|
+ // MIR for `bar` after InstrumentCoverage
|
|
|
|
fn bar() -> bool {
|
|
let mut _0: bool;
|
|
|
|
+ coverage body span: $DIR/instrument_coverage.rs:19:18: 21:2 (#0)
|
|
+ coverage Code(Counter(0)) => 19:1 - 21:2;
|
|
+
|
|
bb0: {
|
|
+ Coverage::CounterIncrement(0);
|
|
_0 = const true;
|
|
return;
|
|
}
|
|
}
|
|
|