Expand description
Trace writes through call arguments in MIR, including wrapper calls.
Re-exportsΒ§
use std::collections::HashMap;πuse std::collections::HashSet;πuse std::collections::VecDeque;πuse rustc_hir::def_id::DefId;πuse rustc_middle::mir::BasicBlock;πuse rustc_middle::mir::Body;πuse rustc_middle::mir::Local;πuse rustc_middle::mir::NonDivergingIntrinsic;πuse rustc_middle::mir::Operand;πuse rustc_middle::mir::ProjectionElem;πuse rustc_middle::mir::Rvalue;πuse rustc_middle::mir::StatementKind;πuse rustc_middle::mir::TerminatorKind;πuse rustc_middle::ty::EarlyBinder;πuse rustc_middle::ty::InstanceKind;πuse rustc_middle::ty::TyCtxt;πuse rustc_middle::ty::TypingEnv;πuse crate::analysis::path::graph::PathEnumerator;πuse crate::analysis::path::graph::PathGraph;πuse crate::compat::Spanned;πuse crate::util::mir_utils as helpers;π
TraitsΒ§
- Write
Semantics π - API-specific facts needed by the MIR write tracer.
FunctionsΒ§
- callsite_
write_ πargs - Return arguments written by the concrete call, following wrapper calls while retaining their generic arguments.
- callsite_
write_ πargs_ rec - path_
ends_ πin_ return - trace_
local_ πto_ callee_ args - trace_
to_ πcallee_ args - Trace backward from an operand (inner call arg) through Copy/Move/Cast/
Ref/RawPtr/tuple assignments to the outer calleeβs argument locals.
Ref/RawPtrare treated as data-flow too, which is an approximation (taking a reference is not a pure copy) but is adequate for wrapper recognition. - write_
args_ πfor_ body - write_
args_ πon_ path - write_
args_ πrec
Type AliasesΒ§
- Write
Memo π - Memo keyed by
(callee, depth)for uninstantiated MIR summaries.