Expand description
Structured diagnostics.
P7 in design/01-principles.md says compiler output is an API. That has one
concrete consequence here: a diagnostic is data, and the human readable text
is a rendering of that data rather than the thing itself. Nothing in the
compiler is allowed to produce an error as a bare String.
Structs§
- Diagnostic
- One problem, at one place, with one cause.
- Fix
- A set of edits that together resolve a diagnostic.
- Label
- A span with something to say about it.
- Suggested
Edit - A single text replacement.
Enums§
- Applicability
- How much a tool should trust a fix.
- Severity