Skip to main content

user_compounds_map

Function user_compounds_map 

Source
fn user_compounds_map() -> &'static RwLock<HashMap<CrateNum, HashMap<String, CompoundSpec>>>
Expand description

Per-crate user compounds, registered from #[rapx::def_property] attributes.

Keyed by CrateNum so that compounds defined in one crate cannot leak into (or collide with) another crate analyzed in the same process. A crate’s own compounds shadow builtin compounds of the same name.