Skip to main content

CACHE_SCHEMA_VERSION

Constant CACHE_SCHEMA_VERSION 

Source
pub const CACHE_SCHEMA_VERSION: u32 = 2;
Expand description

On-disk cache schema version. Bump when the layout of any cached blob changes in an incompatible way. The store wipes the cache directory on startup if the persisted version doesn’t match this constant.

History:

  • 1: initial layout (parse, air, llvm-ir).
  • 2: ADR-0088 added directives + is_unchecked to MethodSig and directives_start/directives_len to InterfaceMethodSig RIR; MethodSig::remap_spurs had to learn to walk the new directive list, and signature-fp encoding now includes the unchecked flag.