Skip to main content

try_load_dead_code_graph_cache

Function try_load_dead_code_graph_cache 

Source
pub fn try_load_dead_code_graph_cache(
    prelude: &DeadCodeBackendPrelude<'_>,
    entry_points: &DeadCodeEntryPoints,
    modules: &[ModuleInfo],
) -> Result<(DeadCodeResolvedModules, DeadCodeGraphRun), Option<CacheRejection>>
Expand description

Try loading the graph cache for an engine-owned dead-code pipeline.

ยงErrors

Returns the reason the persisted graph was refused, the same way the owned-core path does. The engine pipeline reports it in the perf table, so collapsing a refusal into a bare miss here would make the only feature that explains a slow warm run unreachable from every engine-backed command. Err(None) means there was nothing to refuse: the run disabled caching.