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.
39 lines
1.6 KiB
Plaintext
39 lines
1.6 KiB
Plaintext
Function name: let_else_loop::_if (unused)
|
|
Raw bytes (24): 0x[01, 01, 00, 04, 00, 16, 01, 00, 13, 00, 01, 08, 00, 0c, 00, 00, 0f, 00, 16, 00, 00, 20, 00, 27]
|
|
Number of files: 1
|
|
- file 0 => $DIR/let_else_loop.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 4
|
|
- Code(Zero) at (prev + 22, 1) to (start + 0, 19)
|
|
- Code(Zero) at (prev + 1, 8) to (start + 0, 12)
|
|
- Code(Zero) at (prev + 0, 15) to (start + 0, 22)
|
|
- Code(Zero) at (prev + 0, 32) to (start + 0, 39)
|
|
Highest counter ID seen: (none)
|
|
|
|
Function name: let_else_loop::_loop_either_way (unused)
|
|
Raw bytes (24): 0x[01, 01, 00, 04, 00, 0f, 01, 00, 20, 00, 01, 10, 00, 14, 00, 00, 1c, 00, 23, 00, 01, 05, 00, 0c]
|
|
Number of files: 1
|
|
- file 0 => $DIR/let_else_loop.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 4
|
|
- Code(Zero) at (prev + 15, 1) to (start + 0, 32)
|
|
- Code(Zero) at (prev + 1, 16) to (start + 0, 20)
|
|
- Code(Zero) at (prev + 0, 28) to (start + 0, 35)
|
|
- Code(Zero) at (prev + 1, 5) to (start + 0, 12)
|
|
Highest counter ID seen: (none)
|
|
|
|
Function name: let_else_loop::loopy
|
|
Raw bytes (26): 0x[01, 01, 01, 01, 05, 04, 01, 09, 01, 00, 15, 01, 01, 10, 00, 14, 05, 00, 1c, 00, 23, 02, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/let_else_loop.rs
|
|
Number of expressions: 1
|
|
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
|
|
Number of file 0 mappings: 4
|
|
- Code(Counter(0)) at (prev + 9, 1) to (start + 0, 21)
|
|
- Code(Counter(0)) at (prev + 1, 16) to (start + 0, 20)
|
|
- Code(Counter(1)) at (prev + 0, 28) to (start + 0, 35)
|
|
- Code(Expression(0, Sub)) at (prev + 1, 1) to (start + 0, 2)
|
|
= (c0 - c1)
|
|
Highest counter ID seen: c1
|
|
|