mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 17:26:12 +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.
81 lines
4.3 KiB
Plaintext
81 lines
4.3 KiB
Plaintext
Function name: assert::assert_a_plain
|
|
Raw bytes (64): 0x[01, 01, 00, 0c, 01, 06, 01, 00, 25, 01, 01, 05, 00, 0c, 01, 00, 0d, 00, 1a, 05, 01, 05, 00, 0f, 05, 00, 10, 00, 13, 05, 00, 15, 00, 21, 09, 01, 05, 00, 0f, 09, 00, 10, 00, 13, 09, 00, 15, 00, 19, 0d, 01, 05, 00, 14, 0d, 00, 15, 00, 18, 11, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/assert.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 12
|
|
- Code(Counter(0)) at (prev + 6, 1) to (start + 0, 37)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 12)
|
|
- Code(Counter(0)) at (prev + 0, 13) to (start + 0, 26)
|
|
- Code(Counter(1)) at (prev + 1, 5) to (start + 0, 15)
|
|
- Code(Counter(1)) at (prev + 0, 16) to (start + 0, 19)
|
|
- Code(Counter(1)) at (prev + 0, 21) to (start + 0, 33)
|
|
- Code(Counter(2)) at (prev + 1, 5) to (start + 0, 15)
|
|
- Code(Counter(2)) at (prev + 0, 16) to (start + 0, 19)
|
|
- Code(Counter(2)) at (prev + 0, 21) to (start + 0, 25)
|
|
- Code(Counter(3)) at (prev + 1, 5) to (start + 0, 20)
|
|
- Code(Counter(3)) at (prev + 0, 21) to (start + 0, 24)
|
|
- Code(Counter(4)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c4
|
|
|
|
Function name: assert::assert_b_message
|
|
Raw bytes (64): 0x[01, 01, 00, 0c, 01, 0d, 01, 00, 27, 01, 01, 05, 00, 0c, 01, 00, 0d, 00, 1a, 05, 01, 05, 00, 0f, 05, 00, 10, 00, 13, 05, 00, 15, 00, 21, 09, 01, 05, 00, 0f, 09, 00, 10, 00, 13, 09, 00, 15, 00, 19, 0d, 01, 05, 00, 14, 0d, 00, 15, 00, 18, 11, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/assert.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 12
|
|
- Code(Counter(0)) at (prev + 13, 1) to (start + 0, 39)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 12)
|
|
- Code(Counter(0)) at (prev + 0, 13) to (start + 0, 26)
|
|
- Code(Counter(1)) at (prev + 1, 5) to (start + 0, 15)
|
|
- Code(Counter(1)) at (prev + 0, 16) to (start + 0, 19)
|
|
- Code(Counter(1)) at (prev + 0, 21) to (start + 0, 33)
|
|
- Code(Counter(2)) at (prev + 1, 5) to (start + 0, 15)
|
|
- Code(Counter(2)) at (prev + 0, 16) to (start + 0, 19)
|
|
- Code(Counter(2)) at (prev + 0, 21) to (start + 0, 25)
|
|
- Code(Counter(3)) at (prev + 1, 5) to (start + 0, 20)
|
|
- Code(Counter(3)) at (prev + 0, 21) to (start + 0, 24)
|
|
- Code(Counter(4)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c4
|
|
|
|
Function name: assert::assert_c_format_inline
|
|
Raw bytes (64): 0x[01, 01, 00, 0c, 01, 14, 01, 00, 38, 01, 01, 05, 00, 0c, 01, 00, 0d, 00, 1a, 05, 01, 05, 00, 0f, 05, 00, 10, 00, 13, 05, 00, 15, 00, 21, 09, 01, 05, 00, 0f, 09, 00, 10, 00, 13, 09, 00, 15, 00, 19, 0d, 01, 05, 00, 14, 0d, 00, 15, 00, 18, 11, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/assert.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 12
|
|
- Code(Counter(0)) at (prev + 20, 1) to (start + 0, 56)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 12)
|
|
- Code(Counter(0)) at (prev + 0, 13) to (start + 0, 26)
|
|
- Code(Counter(1)) at (prev + 1, 5) to (start + 0, 15)
|
|
- Code(Counter(1)) at (prev + 0, 16) to (start + 0, 19)
|
|
- Code(Counter(1)) at (prev + 0, 21) to (start + 0, 33)
|
|
- Code(Counter(2)) at (prev + 1, 5) to (start + 0, 15)
|
|
- Code(Counter(2)) at (prev + 0, 16) to (start + 0, 19)
|
|
- Code(Counter(2)) at (prev + 0, 21) to (start + 0, 25)
|
|
- Code(Counter(3)) at (prev + 1, 5) to (start + 0, 20)
|
|
- Code(Counter(3)) at (prev + 0, 21) to (start + 0, 24)
|
|
- Code(Counter(4)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c4
|
|
|
|
Function name: assert::assert_d_format_arg
|
|
Raw bytes (64): 0x[01, 01, 00, 0c, 01, 1b, 01, 00, 35, 01, 01, 05, 00, 0c, 01, 00, 0d, 00, 1a, 05, 01, 05, 00, 0f, 05, 00, 10, 00, 13, 05, 00, 15, 00, 21, 09, 01, 05, 00, 0f, 09, 00, 10, 00, 13, 09, 00, 15, 00, 19, 0d, 01, 05, 00, 14, 0d, 00, 15, 00, 18, 11, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/assert.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 12
|
|
- Code(Counter(0)) at (prev + 27, 1) to (start + 0, 53)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 12)
|
|
- Code(Counter(0)) at (prev + 0, 13) to (start + 0, 26)
|
|
- Code(Counter(1)) at (prev + 1, 5) to (start + 0, 15)
|
|
- Code(Counter(1)) at (prev + 0, 16) to (start + 0, 19)
|
|
- Code(Counter(1)) at (prev + 0, 21) to (start + 0, 33)
|
|
- Code(Counter(2)) at (prev + 1, 5) to (start + 0, 15)
|
|
- Code(Counter(2)) at (prev + 0, 16) to (start + 0, 19)
|
|
- Code(Counter(2)) at (prev + 0, 21) to (start + 0, 25)
|
|
- Code(Counter(3)) at (prev + 1, 5) to (start + 0, 20)
|
|
- Code(Counter(3)) at (prev + 0, 21) to (start + 0, 24)
|
|
- Code(Counter(4)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c4
|
|
|