Skip to content

Commit

Permalink
Auto merge of #116409 - Zalathar:span-extraction, r=oli-obk
Browse files Browse the repository at this point in the history
coverage: Separate initial span extraction from span processing

One of the main subtasks of coverage instrumentation is looking through MIR to determine a list of source code spans that require coverage counters.

That task is in turn subdivided into a few main steps:
- Getting the initial spans from MIR statements/terminators
- Processing the list of spans to merge or truncate nearby spans as necessary
- Grouping the processed spans by their corresponding coverage graph node

---

This PR enforces a firmer separation between the first two steps (span extraction and span processing), which ends up slightly simplifying both steps, since they don't need to deal with state that is only meaningful for the other step.

---

`@rustbot` label +A-code-coverage
  • Loading branch information
bors committed Oct 10, 2023
2 parents 091bb74 + 6c44425 commit 5c37696
Show file tree
Hide file tree
Showing 2 changed files with 215 additions and 237 deletions.
Loading

0 comments on commit 5c37696

Please sign in to comment.