Module diagnostics

Source

Modules§

reporting

Macros§

bail
Return early with an error.
diagnostic
Construct a MietteDiagnostic in more user-friendly way.

Structs§

ArcSource
Label
LabeledSpan
A labeled SourceSpan.
Report
Core Diagnostic wrapper type.
Source
SourceOffset
Newtype that represents the ByteOffset from the beginning of a SourceCode
SourceSpan
Span within a SourceCode
Span
Represents the source span of an item of type [T]

Enums§

FileName
Severity
Diagnostic severity. Intended to be used by ReportHandlers to change the way different Diagnostics are displayed. Defaults to Severity::Error.

Traits§

Diagnostic
Adds rich metadata to your Error that can be used by Report to print really nice and human-friendly error messages.
IntoDiagnostic
Convenience trait that adds a .into_diagnostic() method that converts a type implementing std::error::Error to a Result<T, Report>.
NamedSourceFile
SourceCode
Represents readable source code of some sort.
SourceFile
Spanned
WrapErr
Provides the wrap_err() method for Result.

Type Aliases§

ByteOffset
“Raw” type for the byte offset from the beginning of a SourceCode.
Diag
DiagResult

Derive Macros§

Diagnostic