pub fn collect_generic_decls(
modules: &[(&AIRModule, &Path)],
) -> GenericDeclRegistryExpand description
Pre-scan every reached module and build the GenericDeclRegistry.
Records the generic parameters declared on each top-level RecordDecl,
EnumDecl, and ClassDecl. Non-generic decls are recorded with an empty
parameter list (their presence still lets a backend distinguish a known
concrete type from an unknown one).