mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
eb2d4cb541
When we extract coverage spans from MIR, we try to "un-expand" them back to spans that are inside the function's body span. In cases where that doesn't succeed, the current code just swaps in the entire body span instead. But that tends to result in coverage spans that are completely unrelated to the control flow of the affected code, so it's better to just discard those spans.
25 lines
791 B
Plaintext
25 lines
791 B
Plaintext
Function name: unreachable::UNREACHABLE_CLOSURE::{closure#0}
|
|
Raw bytes (9): 0x[01, 01, 00, 01, 01, 0f, 27, 00, 47]
|
|
Number of files: 1
|
|
- file 0 => global file 1
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 1
|
|
- Code(Counter(0)) at (prev + 15, 39) to (start + 0, 71)
|
|
|
|
Function name: unreachable::unreachable_function
|
|
Raw bytes (9): 0x[01, 01, 00, 01, 01, 11, 01, 01, 25]
|
|
Number of files: 1
|
|
- file 0 => global file 1
|
|
Number of expressions: 0
|
|
Number of file 0 mappings: 1
|
|
- Code(Counter(0)) at (prev + 17, 1) to (start + 1, 37)
|
|
|
|
Function name: unreachable::unreachable_intrinsic
|
|
Raw bytes (9): 0x[01, 01, 00, 01, 01, 16, 01, 01, 2c]
|
|
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, 1) to (start + 1, 44)
|
|
|