fn mir_body(tcx: TyCtxt<'_>, def_id: DefId) -> &Body<'_>
Expand description

This function ensures we obtain the correct MIR for the given item irrespective of whether that means const mir or runtime mir. For const fn this opts for runtime mir.