fn trace_to_callee_args<'tcx>(
semantics: &impl WriteSemantics,
tcx: TyCtxt<'tcx>,
caller: DefId,
body: &Body<'tcx>,
operand: &Operand<'tcx>,
) -> HashSet<usize>Expand description
Trace backward from an operand (inner call arg) through Copy/Move/Cast/
Ref/RawPtr/tuple assignments to the outer callee’s argument locals.
Ref/RawPtr are treated as data-flow too, which is an
approximation (taking a reference is not a pure copy) but is adequate for
wrapper recognition.