Expand description
Diagnostics implementation.
Modified from rustc_errors
.
Structs§
- Marker type which enables implementation of
create_bug
andemit_bug
functions for bug diagnostics. - A handler deals with errors and other compiler output. Certain errors (fatal, bug, unimpl) may cause immediate exit, others log errors for later reporting.
- Flags that control the behaviour of a
DiagCtxt
. - A compiler diagnostic.
- Used for emitting structured error messages and other diagnostic information.
- Diagnostic ID.
- Represents all the diagnostics emitted up to a certain point.
- Useful type to use with
Result
indicate that an error has already been reported to the user, so no need to continue checking. - Signifies that the compiler died with an explicit call to
.bug
rather than a failed assertion, etc. - Marker type which enables implementation of fatal diagnostics.
- Diagnostic emitter that emits diagnostics in human-readable format to a local buffer.
- Diagnostic emitter that emits to an arbitrary
io::Write
writer in human-readable format. - Json
Emitter json
Diagnostic emitter that emits diagnostics as JSON. - Diagnostic emitter that only stores emitted diagnostics.
- A collection of
Span
s. - Diagnostic emitter that only emits fatal diagnostics.
- A span together with some additional data.
- A “sub”-diagnostic attached to a parent diagnostic. For example, a note attached to an error.
Enums§
- Diagnostic level.
Traits§
- Trait for types that
DiagnosticBuilder::emit
can return as a “guarantee” (or “proof”) token that the emission happened. - Diagnostic emitter.
Type Aliases§
- Dynamic diagnostic emitter. See
Emitter
.