Skip to main content

only_referenced_within_cycle

Function only_referenced_within_cycle 

Source
fn only_referenced_within_cycle(
    refs: &HashMap<FunctionId, RefInfo>,
    start: FunctionId,
) -> bool
Expand description

Whether a function’s single reference only enters it through a reference cycle: the chain of single-reference sources loops back on itself, so there is no non-recursive caller to inline into (mutually recursive helpers with no external caller).