mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
cd9021e8cb
When we try to extract coverage-relevant spans from MIR, sometimes we see MIR statements/terminators whose spans cover the entire function body. Those spans tend to be unhelpful for coverage purposes, because they often represent compiler-inserted code, e.g. the implicit return value of `()`.
17 lines
507 B
Plaintext
17 lines
507 B
Plaintext
Function name: macro_name_span::affected_function
|
|
Raw bytes (9): 0x[01, 01, 00, 01, 01, 16, 1c, 01, 40]
|
|
Number of files: 1
|
|
- file 0 => global file 1
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 1
|
|
- Code(Counter(0)) at (prev + 22, 28) to (start + 1, 64)
|
|
|
|
Function name: macro_name_span::main
|
|
Raw bytes (9): 0x[01, 01, 00, 01, 01, 0b, 01, 02, 02]
|
|
Number of files: 1
|
|
- file 0 => global file 1
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 1
|
|
- Code(Counter(0)) at (prev + 11, 1) to (start + 2, 2)
|
|
|