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.
95 lines
4.3 KiB
Plaintext
95 lines
4.3 KiB
Plaintext
Function name: sort_groups::generic_fn::<&str>
|
|
Raw bytes (36): 0x[01, 01, 01, 01, 05, 06, 01, 11, 01, 00, 1d, 01, 01, 08, 00, 0c, 05, 01, 09, 00, 11, 05, 00, 18, 00, 32, 02, 01, 05, 00, 06, 01, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/sort_groups.rs
|
|
Number of expressions: 1
|
|
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
|
|
Number of file 0 mappings: 6
|
|
- Code(Counter(0)) at (prev + 17, 1) to (start + 0, 29)
|
|
- Code(Counter(0)) at (prev + 1, 8) to (start + 0, 12)
|
|
- Code(Counter(1)) at (prev + 1, 9) to (start + 0, 17)
|
|
- Code(Counter(1)) at (prev + 0, 24) to (start + 0, 50)
|
|
- Code(Expression(0, Sub)) at (prev + 1, 5) to (start + 0, 6)
|
|
= (c0 - c1)
|
|
- Code(Counter(0)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c1
|
|
|
|
Function name: sort_groups::generic_fn::<()>
|
|
Raw bytes (36): 0x[01, 01, 01, 01, 05, 06, 01, 11, 01, 00, 1d, 01, 01, 08, 00, 0c, 05, 01, 09, 00, 11, 05, 00, 18, 00, 32, 02, 01, 05, 00, 06, 01, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/sort_groups.rs
|
|
Number of expressions: 1
|
|
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
|
|
Number of file 0 mappings: 6
|
|
- Code(Counter(0)) at (prev + 17, 1) to (start + 0, 29)
|
|
- Code(Counter(0)) at (prev + 1, 8) to (start + 0, 12)
|
|
- Code(Counter(1)) at (prev + 1, 9) to (start + 0, 17)
|
|
- Code(Counter(1)) at (prev + 0, 24) to (start + 0, 50)
|
|
- Code(Expression(0, Sub)) at (prev + 1, 5) to (start + 0, 6)
|
|
= (c0 - c1)
|
|
- Code(Counter(0)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c1
|
|
|
|
Function name: sort_groups::generic_fn::<char>
|
|
Raw bytes (36): 0x[01, 01, 01, 01, 05, 06, 01, 11, 01, 00, 1d, 01, 01, 08, 00, 0c, 05, 01, 09, 00, 11, 05, 00, 18, 00, 32, 02, 01, 05, 00, 06, 01, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/sort_groups.rs
|
|
Number of expressions: 1
|
|
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
|
|
Number of file 0 mappings: 6
|
|
- Code(Counter(0)) at (prev + 17, 1) to (start + 0, 29)
|
|
- Code(Counter(0)) at (prev + 1, 8) to (start + 0, 12)
|
|
- Code(Counter(1)) at (prev + 1, 9) to (start + 0, 17)
|
|
- Code(Counter(1)) at (prev + 0, 24) to (start + 0, 50)
|
|
- Code(Expression(0, Sub)) at (prev + 1, 5) to (start + 0, 6)
|
|
= (c0 - c1)
|
|
- Code(Counter(0)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c1
|
|
|
|
Function name: sort_groups::generic_fn::<i32>
|
|
Raw bytes (36): 0x[01, 01, 01, 01, 05, 06, 01, 11, 01, 00, 1d, 01, 01, 08, 00, 0c, 05, 01, 09, 00, 11, 05, 00, 18, 00, 32, 02, 01, 05, 00, 06, 01, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/sort_groups.rs
|
|
Number of expressions: 1
|
|
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
|
|
Number of file 0 mappings: 6
|
|
- Code(Counter(0)) at (prev + 17, 1) to (start + 0, 29)
|
|
- Code(Counter(0)) at (prev + 1, 8) to (start + 0, 12)
|
|
- Code(Counter(1)) at (prev + 1, 9) to (start + 0, 17)
|
|
- Code(Counter(1)) at (prev + 0, 24) to (start + 0, 50)
|
|
- Code(Expression(0, Sub)) at (prev + 1, 5) to (start + 0, 6)
|
|
= (c0 - c1)
|
|
- Code(Counter(0)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c1
|
|
|
|
Function name: sort_groups::main
|
|
Raw bytes (56): 0x[01, 01, 01, 01, 05, 0a, 01, 06, 01, 00, 0a, 01, 01, 10, 00, 2a, 01, 01, 05, 00, 1b, 01, 01, 05, 00, 26, 01, 01, 08, 00, 23, 05, 01, 09, 00, 21, 02, 01, 05, 00, 06, 01, 01, 05, 00, 1c, 01, 01, 05, 00, 0f, 01, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/sort_groups.rs
|
|
Number of expressions: 1
|
|
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
|
|
Number of file 0 mappings: 10
|
|
- Code(Counter(0)) at (prev + 6, 1) to (start + 0, 10)
|
|
- Code(Counter(0)) at (prev + 1, 16) to (start + 0, 42)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 27)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 38)
|
|
- Code(Counter(0)) at (prev + 1, 8) to (start + 0, 35)
|
|
- Code(Counter(1)) at (prev + 1, 9) to (start + 0, 33)
|
|
- Code(Expression(0, Sub)) at (prev + 1, 5) to (start + 0, 6)
|
|
= (c0 - c1)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 28)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 15)
|
|
- Code(Counter(0)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c1
|
|
|
|
Function name: sort_groups::other_fn
|
|
Raw bytes (14): 0x[01, 01, 00, 02, 01, 17, 01, 00, 0e, 01, 00, 10, 00, 11]
|
|
Number of files: 1
|
|
- file 0 => $DIR/sort_groups.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 2
|
|
- Code(Counter(0)) at (prev + 23, 1) to (start + 0, 14)
|
|
- Code(Counter(0)) at (prev + 0, 16) to (start + 0, 17)
|
|
Highest counter ID seen: c0
|
|
|