Skip to main content

Module catalog

Module catalog 

Source
Expand description

Catalog of diagnostic codes emitted by the compiler.

Source crates emit diagnostics with inline numeric codes (e.g. E1001). This catalog is the single queryable registry of those codes together with their human-facing metadata — used by editor extensions, the vocabulary emitter, and online documentation.

The catalog is deliberately separate from emission sites: keeping it centralized means tools can render it without depending on the internal structure of every compiler pass. When a new code is introduced at an emission site, add an entry here too.

Structs§

DiagnosticCodeInfo
Metadata for a single diagnostic code.

Functions§

diagnostic_catalog
The full catalog of diagnostic codes.