Re-exports§
pub use crate::emitter::ColorConfig;pub use crate::diagnostic::Diagnostic;pub use crate::diagnostic::DiagnosticStyledString;pub use crate::diagnostic::StringPart;pub use crate::diagnostic::SubDiagnostic;pub use crate::diagnostic_builder::DiagnosticBuilder;
Modules§
- diagnostic
- diagnostic_
builder - emitter
- registry
- snippet
- Code for annotating snippets.
- styled_
buffer - Code for creating styled buffers
Structs§
- Code
Suggestion - Explicit
Bug - Signifies that the compiler died with an explicit call to
.bugor.span_bugrather than a failed assertion, etc. - Fatal
Error - Used as a return value to signify a fatal error occurred. (It is also used as the argument to panic at the moment, but that will eventually not be true.)
- Handler
- A handler deals with errors; certain errors (fatal, bug, unimpl) may cause immediate exit, others log errors for later reporting.
- Substitution
- See the docs on
CodeSuggestion::substitutions