Skip to main content

callsite_replaces_pointer_field

Function callsite_replaces_pointer_field 

Source
pub(crate) fn callsite_replaces_pointer_field(
    tcx: TyCtxt<'_>,
    func: &Operand<'_>,
) -> bool
Expand description

Whether a callee can replace a pointer stored in one of its objects. This follows MIR calls rather than identifying container methods by name.