Spanview needs the relevant body_span used for coverage

The coverage body_span doesn't always match the function body_span.
This commit is contained in:
Rich Kadel
2021-05-09 23:08:31 -07:00
parent 9daf546b77
commit e354cca696
3 changed files with 11 additions and 8 deletions

View File

@@ -204,6 +204,7 @@ impl<'a, 'tcx> Instrumentor<'a, 'tcx> {
self.mir_body,
&self.basic_coverage_blocks,
self.pass_name,
body_span,
&coverage_spans,
);
}