Skip to main content

Module diagnostics

Module diagnostics 

Source

Structs§

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.

Enums§

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.

Functions§

format_path
Render an opaque source label without consulting process state.