Function rustc_mir_build::build::construct_error

source ·
fn construct_error(
    tcx: TyCtxt<'_>,
    def_id: LocalDefId,
    guar: ErrorGuaranteed
) -> Body<'_>
Expand description

Construct MIR for an item that has had errors in type checking.

This is required because we may still want to run MIR passes on an item with type errors, but normal MIR construction can’t handle that in general.