Expand description
Structured diagnostics.
A free-form Vec<String> warning is useful for a human but opaque to CI, an
agent, or a downstream solver. Every finding a frontend, lowering pass, or
backend records carries a stable DiagnosticCode, a DiagnosticSeverity,
the DiagnosticStage it came from, a human message, and (where known) the
element path and SourceRef it refers to. Human-readable warnings should
be rendered from these, not the other way around.
Structs§
- Diagnostic
Code - A stable, dotted diagnostic code, e.g.
EMIT.PSSE.DROP_ANGLE_LIMITS. - Structured
Diagnostic - One structured finding.
Enums§
- Diagnostic
Severity - Severity, ordered worst-last so
Ordgives the dominant severity of a set. - Diagnostic
Stage - The compiler stage that emitted a diagnostic.