Function get_mir_for_def_id_and_level

Source
fn get_mir_for_def_id_and_level<'tcx>(
    tcx: TyCtxt<'tcx>,
    def_id: &DefId,
    level: MirLevel,
) -> Option<Body<'tcx>>
Expand description

Query the MIR for a function at a specific level. Return None in the case of a foreign body with no MIR available.