Skip to main contentModule diagnostics
Source - Diagnostic
- A single diagnostic message with source location.
- DiagnosticsCollector
- Collects diagnostics across all compiler phases.
- Help
- A help message attached to a diagnostic. Mirrors rustc’s
help: line with an optional list of concrete suggestions. - Suggestion
- A single text replacement attached to a Help block.
- Applicability
- How safe it is to auto-apply a suggestion. Modelled on rustc’s
Applicability. - Phase
- Which compiler phase produced the diagnostic.
- Severity
- Severity level for diagnostics.
- format_path
- Render an opaque source label without consulting process state.