mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-03 01:25:15 +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.
58 lines
2.5 KiB
Plaintext
58 lines
2.5 KiB
Plaintext
Function name: <auto_derived::MyStruct as auto_derived::MyTrait>::my_assoc_fn
|
|
Raw bytes (29): 0x[01, 01, 00, 05, 01, 19, 05, 00, 15, 01, 0e, 09, 00, 12, 01, 01, 09, 00, 13, 01, 01, 09, 00, 16, 01, 01, 05, 00, 06]
|
|
Number of files: 1
|
|
- file 0 => $DIR/auto-derived.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 5
|
|
- Code(Counter(0)) at (prev + 25, 5) to (start + 0, 21)
|
|
- Code(Counter(0)) at (prev + 14, 9) to (start + 0, 18)
|
|
- Code(Counter(0)) at (prev + 1, 9) to (start + 0, 19)
|
|
- Code(Counter(0)) at (prev + 1, 9) to (start + 0, 22)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 6)
|
|
Highest counter ID seen: c0
|
|
|
|
Function name: <auto_derived::MyStruct as auto_derived::MyTrait>::my_assoc_fn::inner_fn
|
|
Raw bytes (19): 0x[01, 01, 00, 03, 01, 1a, 09, 00, 16, 01, 01, 0d, 00, 1f, 01, 01, 09, 00, 0a]
|
|
Number of files: 1
|
|
- file 0 => $DIR/auto-derived.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 3
|
|
- Code(Counter(0)) at (prev + 26, 9) to (start + 0, 22)
|
|
- Code(Counter(0)) at (prev + 1, 13) to (start + 0, 31)
|
|
- Code(Counter(0)) at (prev + 1, 9) to (start + 0, 10)
|
|
Highest counter ID seen: c0
|
|
|
|
Function name: <auto_derived::MyStruct as auto_derived::MyTrait>::my_assoc_fn::inner_fn_on
|
|
Raw bytes (19): 0x[01, 01, 00, 03, 01, 1f, 09, 00, 19, 01, 01, 0d, 00, 24, 01, 01, 09, 00, 0a]
|
|
Number of files: 1
|
|
- file 0 => $DIR/auto-derived.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 3
|
|
- Code(Counter(0)) at (prev + 31, 9) to (start + 0, 25)
|
|
- Code(Counter(0)) at (prev + 1, 13) to (start + 0, 36)
|
|
- Code(Counter(0)) at (prev + 1, 9) to (start + 0, 10)
|
|
Highest counter ID seen: c0
|
|
|
|
Function name: <auto_derived::MyStruct as auto_derived::MyTrait>::my_assoc_fn::{closure#0}
|
|
Raw bytes (19): 0x[01, 01, 00, 03, 01, 23, 1a, 00, 1b, 01, 01, 0d, 00, 1e, 01, 01, 09, 00, 0a]
|
|
Number of files: 1
|
|
- file 0 => $DIR/auto-derived.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 3
|
|
- Code(Counter(0)) at (prev + 35, 26) to (start + 0, 27)
|
|
- Code(Counter(0)) at (prev + 1, 13) to (start + 0, 30)
|
|
- Code(Counter(0)) at (prev + 1, 9) to (start + 0, 10)
|
|
Highest counter ID seen: c0
|
|
|
|
Function name: auto_derived::main
|
|
Raw bytes (19): 0x[01, 01, 00, 03, 01, 33, 01, 00, 0a, 01, 01, 05, 00, 1c, 01, 01, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => $DIR/auto-derived.rs
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 3
|
|
- Code(Counter(0)) at (prev + 51, 1) to (start + 0, 10)
|
|
- Code(Counter(0)) at (prev + 1, 5) to (start + 0, 28)
|
|
- Code(Counter(0)) at (prev + 1, 1) to (start + 0, 2)
|
|
Highest counter ID seen: c0
|
|
|