Re-exportsΒ§
use rustc_codegen_ssa::traits::BaseTypeCodegenMethods;πuse rustc_codegen_ssa::traits::ConstCodegenMethods;πuse rustc_data_structures::fx::FxHashSet;πuse rustc_hir::def_id::DefId;πuse rustc_hir::def_id::LocalDefId;πuse rustc_middle::mir;πuse rustc_middle::mono::MonoItem;πuse rustc_middle::mono::MonoItemPartitions;πuse rustc_middle::ty;πuse rustc_middle::ty::TyCtxt;πuse rustc_span::def_id::DefIdSet;πuse crate::common::CodegenCx;πuse crate::coverageinfo::mapgen::covfun::CovfunRecord;πuse crate::coverageinfo::mapgen::covfun::prepare_covfun_record;πuse crate::llvm;π
StructsΒ§
- Unused
Instance π - Holds a dummy function instance along with its symbol name, to avoid having to repeatedly query for the name.
- Usage
Sets π
FunctionsΒ§
- gather_
unused_ πfunction_ instances - make_
dummy_ πinstance - prepare_
covfun_ πrecords_ for_ unused_ functions - Each CGU will normally only emit coverage metadata for the functions that it actually generates. But since we donβt want unused functions to disappear from coverage reports, we also scan for functions that were instrumented but are not participating in codegen.
- prepare_
usage_ πsets - Prepare sets of definitions that are relevant to deciding whether something is an βunused functionβ for coverage purposes.