Expand description
Diagnostics hold error information from around the compiler, associated with a location to the source files.
Macros§
- error_
code - Constructs an
ErrorCode
.
Structs§
- Diagnostic
Added - This struct is used to ensure that when an error occurs, a diagnostic is properly reported.
- Diagnostic
Location - Diagnostic
Note - A note about a diagnostic. May include a relevant diagnostic location.
- Diagnostics
- A set of diagnostic entries that arose during a computation.
- Diagnostics
Builder - A builder for Diagnostics, accumulating multiple diagnostic entries.
- Error
Code - The unique and never-changing identifier of an error or warning.
- Formatted
Diagnostic Entry
Enums§
- Severity
- The severity of a diagnostic.
Traits§
- Diagnostic
Entry - A trait for diagnostics (i.e., errors and warnings) across the compiler. Meant to be implemented by each module that may produce diagnostics.
- Option
Error Code Ext - Utilities for
Option<ErrorCode>
. - ToMaybe
- Temporary trait to allow conversions from the old
Option<T>
mechanism toMaybe<T>
. - ToOption
- Temporary trait to allow conversions from
Maybe<T>
toOption<T>
.
Functions§
- format_
diagnostics - get_
location_ marks - Given a diagnostic location, returns a string with the location marks.
- skip_
diagnostic
Type Aliases§
- Maybe
- Represents an arbitrary type T or a missing output due to an error whose diagnostic was properly reported.
- Plugin
File Diagnostic Notes - Diagnostic notes for diagnostics originating in the plugin generated files identified by
FileId
.