mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
Instead of trying to heuristically recover source-code spans from MIR soup, we can now take advantage of the `CoverageKind::Point` statements injected for specific HIR expressions. This is a transitional implementation that lets us remove the old MIR-soup code, but still relies heavily on the existing span-refinement heuristics, and does not take advantage of the full possibilities of HIR-aware coverage instrumentation. In order to avoid annoying never-executed spans in code that contains assertions, a heuristic has been added that ignores any expression within the arguments of a macro-expanded function call that returns `!`. Some coverage tests now require `//@ min-llvm-version: 23`, due to changes in how LLVM sorts the coverage mapping entries.
44 lines
1.9 KiB
Plaintext
44 lines
1.9 KiB
Plaintext
Function name: unicode::main
|
|
Raw bytes (58): 0x[01, 01, 02, 05, 01, 01, 0d, 0a, 01, 0e, 01, 00, 0a, 01, 01, 10, 00, 1b, 02, 00, 1c, 00, 28, 01, 02, 08, 00, 25, 09, 00, 29, 00, 46, 0d, 01, 09, 00, 11, 0d, 00, 12, 00, 18, 06, 01, 05, 00, 06, 01, 02, 05, 00, 0d, 01, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/unicode.rs
|
|
Number of expressions: 2
|
|
- expression 0 operands: lhs = Counter(1), rhs = Counter(0)
|
|
- expression 1 operands: lhs = Counter(0), rhs = Counter(3)
|
|
Number of file 0 mappings: 10
|
|
- Code(Counter(0)) at (prev + 14, 1) to (start + 0, 10)
|
|
- Code(Counter(0)) at (prev + 1, 16) to (start + 0, 27)
|
|
- Code(Expression(0, Sub)) at (prev + 0, 28) to (start + 0, 40)
|
|
= (c1 - c0)
|
|
- Code(Counter(0)) at (prev + 2, 8) to (start + 0, 37)
|
|
- Code(Counter(2)) at (prev + 0, 41) to (start + 0, 70)
|
|
- Code(Counter(3)) at (prev + 1, 9) to (start + 0, 17)
|
|
- Code(Counter(3)) at (prev + 0, 18) to (start + 0, 24)
|
|
- Code(Expression(1, Sub)) at (prev + 1, 5) to (start + 0, 6)
|
|
= (c0 - c3)
|
|
- Code(Counter(0)) at (prev + 2, 5) to (start + 0, 13)
|
|
- Code(Counter(0)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c3
|
|
|
|
Function name: unicode::他 (unused)
|
|
Raw bytes (14): 0x[01, 01, 00, 02, 00, 1e, 19, 00, 22, 00, 00, 24, 00, 25]
|
|
Number of files: 1
|
|
- file 0 => $DIR/unicode.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 2
|
|
- Code(Zero) at (prev + 30, 25) to (start + 0, 34)
|
|
- Code(Zero) at (prev + 0, 36) to (start + 0, 37)
|
|
Highest counter ID seen: (none)
|
|
|
|
Function name: unicode::申し訳ございません
|
|
Raw bytes (19): 0x[01, 01, 00, 03, 01, 18, 01, 00, 29, 01, 01, 05, 00, 20, 01, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/unicode.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 3
|
|
- Code(Counter(0)) at (prev + 24, 1) to (start + 0, 41)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 32)
|
|
- Code(Counter(0)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c0
|
|
|