Skip to main content

Module from_mir

Module from_mir 

Source

Re-exportsΒ§

use rustc_middle::mir::coverage::CoverageKind; πŸ”’
use rustc_middle::mir::coverage::PointKind; πŸ”’
use rustc_middle::mir; πŸ”’
use rustc_middle::mir::Statement; πŸ”’
use rustc_middle::mir::StatementKind; πŸ”’
use rustc_span::Span; πŸ”’
use crate::coverage::graph::BasicCoverageBlock; πŸ”’
use crate::coverage::graph::CoverageGraph; πŸ”’
use crate::coverage::hir_info::ExtractedHirInfo; πŸ”’

StructsΒ§

RawSpanFromMir πŸ”’

FunctionsΒ§

extract_raw_spans_from_mir πŸ”’
Generates an initial set of coverage spans from marker statements in the function’s MIR body, each associated with its corresponding node in the coverage graph.
filtered_statement_span πŸ”’
If the MIR Statement has a span contributive to computing coverage spans, return it; otherwise return None.