coverage: Move span unexpansion into its own submodule

This commit is contained in:
Zalathar
2024-06-30 17:36:16 +10:00
parent 716752ebe6
commit 617de8cfb5
5 changed files with 59 additions and 62 deletions

View File

@@ -14,11 +14,6 @@ use crate::coverage::ExtractedHirInfo;
mod from_mir;
// FIXME(#124545) It's awkward that we have to re-export this, because it's an
// internal detail of `from_mir` that is also needed when handling branch and
// MC/DC spans. Ideally we would find a more natural home for it.
pub(super) use from_mir::unexpand_into_body_span_with_visible_macro;
pub(super) fn extract_refined_covspans(
mir_body: &mir::Body<'_>,
hir_info: &ExtractedHirInfo,