Expand description
Data types for the no-panic call graph.
The graph is constructed by the flux-opt crate (the call_graph query provider) but the
types live here so they can be cached in flux-middle and consumed by both flux-opt
(no-panic inference) and flux-refineck (the checker, which recovers the resolved callee at a
call site by location).
Re-exportsΒ§
use std::fmt;πuse std::fs;πuse std::io;πuse std::path::Path;πuse flux_common::dbg::SpanTrace;πuse rustc_data_structures::fx::FxIndexMap;πuse rustc_data_structures::fx::FxIndexSet;πuse rustc_data_structures::unord::UnordMap;πuse rustc_hir::def::DefKind;πuse rustc_hir::def_id::DefId;πuse rustc_macros::TyDecodable;πuse rustc_macros::TyEncodable;πuse rustc_middle::mir::Location;πuse rustc_middle::ty::GenericArgs;πuse rustc_middle::ty::Instance;πuse rustc_middle::ty::InstanceKind;πuse rustc_middle::ty::TyCtxt;πuse rustc_middle::ty::TypeVisitableExt;πuse rustc_serialize::ContextOrd;πuse serde::Serialize;πuse serde::Serialize;πuse toposort_scc::IndexGraph;π
StructsΒ§
EnumsΒ§
- Call
Site Kind - Node
- A node in the call graph. The nodeβs provenance (source item vs monomorphization) is carried by
its
NodeKey; the node itself only records, when it has an analyzable body, the call sites observed in it. - NodeKey
- Identity of a call-graph node. Distinguishes an item as defined in source from a monomorphization synthesized while building the graph.
FunctionsΒ§
- dump_
dep_ graph_ json - Topologically sort
def_idsbyadj(deps before dependents) and emit as JSON tofile_nameinsidedir.