Skip to main content

local_must_write_args

Function local_must_write_args 

Source
pub(super) fn local_must_write_args(
    tcx: TyCtxt<'_>,
    callee: DefId,
    context: &CallContext,
) -> Option<Vec<usize>>
Expand description

Return callee argument indices that are definitely written on every reachable return path, pruning paths infeasible under context. Works for any callee with available MIR, and follows wrapper calls (Vec::push → push_mut) with bounded depth.