Skip to content

Commit

Permalink
Unrolled build for rust-lang#121019
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#121019 - Zalathar:covspans, r=oli-obk

coverage: Simplify some parts of the coverage span refiner

This is another incremental step on my quest to dismantle the coverage span refiner into something more understandable and maintainable.

The biggest change here is splitting up `CoverageSpan` into several more specific structs. Doing so reveals that most of the places that were using that struct only need a subset of its fields and methods.

We can also get rid of separate tracking of `curr_original_span` and `prev_original_span`, by observing that `curr.span` never actually needs to be mutated, and that we can store `prev_original_span` directly in the dedicated struct for `prev`.

`@rustbot` label +A-code-coverage
  • Loading branch information
rust-timer committed Feb 13, 2024
2 parents eaff1af + e67db4c commit 737609e
Show file tree
Hide file tree
Showing 2 changed files with 155 additions and 150 deletions.
Loading

0 comments on commit 737609e

Please sign in to comment.