mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +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 `()`.
46 lines
1.8 KiB
Plaintext
46 lines
1.8 KiB
Plaintext
Function name: inline_dead::dead (unused)
|
|
Raw bytes (9): 0x[01, 01, 00, 01, 00, 17, 01, 02, 02]
|
|
Number of files: 1
|
|
- file 0 => global file 1
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 1
|
|
- Code(Zero) at (prev + 23, 1) to (start + 2, 2)
|
|
|
|
Function name: inline_dead::live::<false>
|
|
Raw bytes (28): 0x[01, 01, 02, 01, 00, 00, 02, 04, 01, 0e, 01, 01, 09, 00, 02, 09, 00, 0f, 02, 02, 09, 00, 0a, 07, 02, 01, 00, 02]
|
|
Number of files: 1
|
|
- file 0 => global file 1
|
|
Number of expressions: 2
|
|
- expression 0 operands: lhs = Counter(0), rhs = Zero
|
|
- expression 1 operands: lhs = Zero, rhs = Expression(0, Sub)
|
|
Number of file 0 mappings: 4
|
|
- Code(Counter(0)) at (prev + 14, 1) to (start + 1, 9)
|
|
- Code(Zero) at (prev + 2, 9) to (start + 0, 15)
|
|
- Code(Expression(0, Sub)) at (prev + 2, 9) to (start + 0, 10)
|
|
= (c0 - Zero)
|
|
- Code(Expression(1, Add)) at (prev + 2, 1) to (start + 0, 2)
|
|
= (Zero + (c0 - Zero))
|
|
|
|
Function name: inline_dead::main
|
|
Raw bytes (14): 0x[01, 01, 00, 02, 01, 04, 01, 03, 0a, 01, 06, 05, 01, 02]
|
|
Number of files: 1
|
|
- file 0 => global file 1
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 2
|
|
- Code(Counter(0)) at (prev + 4, 1) to (start + 3, 10)
|
|
- Code(Counter(0)) at (prev + 6, 5) to (start + 1, 2)
|
|
|
|
Function name: inline_dead::main::{closure#0}
|
|
Raw bytes (23): 0x[01, 01, 02, 00, 06, 01, 00, 03, 01, 07, 17, 01, 16, 00, 01, 17, 00, 18, 03, 01, 05, 00, 06]
|
|
Number of files: 1
|
|
- file 0 => global file 1
|
|
Number of expressions: 2
|
|
- expression 0 operands: lhs = Zero, rhs = Expression(1, Sub)
|
|
- expression 1 operands: lhs = Counter(0), rhs = Zero
|
|
Number of file 0 mappings: 3
|
|
- Code(Counter(0)) at (prev + 7, 23) to (start + 1, 22)
|
|
- Code(Zero) at (prev + 1, 23) to (start + 0, 24)
|
|
- Code(Expression(0, Add)) at (prev + 1, 5) to (start + 0, 6)
|
|
= (Zero + (c0 - Zero))
|
|
|