Module diag

Source
Expand description

Diagnostics.

Macros§

eco_format
Create a new EcoString from a format string.

Structs§

EcoString
An economical string with inline storage and clone-on-write semantics.
HintedString
A string message with hints.
SourceDiagnostic
An error or warning in a source file.
Warned
An output alongside warnings generated while producing it.

Enums§

FileError
An error that occurred while trying to load of a file.
PackageError
An error that occurred while trying to load a package.
Severity
The severity of a SourceDiagnostic.
Tracepoint
A part of a diagnostic’s trace.

Traits§

At
Convert a StrResult or HintedStrResult to a SourceResult by adding span information.
DeprecationSink
Destination for a deprecation message when accessing a deprecated value.
Hint
Enrich a StrResult or HintedStrResult with a hint.
Trace
Enrich a SourceResult with a tracepoint.

Functions§

format_xml_like_error
Format a user-facing error message for an XML-like file format.

Type Aliases§

FileResult
A result type with a file-related error.
HintedStrResult
A result type with a string error message and hints.
PackageResult
A result type with a package-related error.
SourceResult
A result that can carry multiple source errors.
StrResult
A result type with a string error message.