ExtractedHirInfo in rustc_mir_transform::coverage - Rust (original) (raw)

Struct ExtractedHirInfo

Source

struct ExtractedHirInfo {
    function_source_hash: u64,
    is_async_fn: bool,
    fn_sig_span: Option<Span>,
    body_span: Span,
    hole_spans: Vec<Span>,
}

Expand description

Function information extracted from HIR by the coverage instrumentor.

The span of the function’s signature, if available. Must have the same context and filename as the body span.

§body_span: [Span](../../rustc%5Fspan/span%5Fencoding/struct.Span.html "struct rustc_span::span_encoding::Span")

“Holes” are regions within the function body (or its expansions) that should not be included in coverage spans for this function (e.g. closures and nested items).

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 56 bytes