Skip to main content

cached_to_module

Function cached_to_module 

Source
pub fn cached_to_module(cached: &CachedModule, file_id: FileId) -> ModuleInfo
Expand description

Reconstruct a ModuleInfo from a CachedModule, with its complexity and its call facts.

An entry that holds no usable call facts gives function_contracts: None, the same as a module with no facts. A parse that must have the facts uses cached_hit_to_module, which treats such an entry as a miss.