Skip to content

Commit 9046a93

Browse files
committed
Improved the MIR spanview output
* Adds missing "tail" spans (spans that continue beyond the end of overlapping spans) * Adds a caret to highlight empty spans associated with MIR elements that have a position, but otherwise would not be visible. * Adds visual pointing brackets at the beginning and end of each span
1 parent 4b65872 commit 9046a93

File tree

7 files changed

+980
-319
lines changed

7 files changed

+980
-319
lines changed

compiler/rustc_mir/src/transform/instrument_coverage.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ impl<'a, 'tcx> Instrumentor<'a, 'tcx> {
309309
for coverage_region in coverage_regions {
310310
span_viewables.push(SpanViewable {
311311
span: coverage_region.span,
312-
title: format!("{}", coverage_region.blocks[0].index()),
312+
id: format!("{}", coverage_region.blocks[0].index()),
313313
tooltip: self.make_tooltip_text(coverage_region),
314314
});
315315
}

0 commit comments

Comments
 (0)