about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-13 17:38:11 +0100
committerGitHub <noreply@github.com>2024-02-13 17:38:11 +0100
commite36a7f4c65ef1dfba37da37451d25e72c1512f6c (patch)
tree1fc9e595fdbf22e4ad6b9579441bf0a346da975c /compiler/rustc_trait_selection/src
parentb785fdb80b86abedc30ba0d1f7027066454ed4bd (diff)
parente67db4c3b898a03a664d680f9d326f456169eb8f (diff)
downloadrust-e36a7f4c65ef1dfba37da37451d25e72c1512f6c.tar.gz
rust-e36a7f4c65ef1dfba37da37451d25e72c1512f6c.zip
Rollup merge of #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
Diffstat (limited to 'compiler/rustc_trait_selection/src')
0 files changed, 0 insertions, 0 deletions