pub(crate) fn promoted_mir(
tcx: TyCtxt<'_>,
def: WithOptConstParam<LocalDefId>
) -> &IndexVec<Promoted, Body<'_>>
Expand description

Fetch all the promoteds of an item and prepare their MIR bodies to be ready for constant evaluation once all substitutions become known.