Module rustc_errors::diagnostic_builder
source · Structs§
- Marker type which enables implementation of
create_bugandemit_bugfunctions for bug diagnostics. - Used for emitting structured error messages and other diagnostic information. Wraps a
Diagnostic, adding some useful things. - Marker type which enables implementation of
create_fatalandemit_fatalfunctions for fatal diagnostics.
Traits§
- Trait for types that
DiagnosticBuilder::emitcan return as a “guarantee” (or “proof”) token that the emission happened. - Trait implemented by error types. This is rarely implemented manually. Instead, use
#[derive(Diagnostic)]– see rustc_macros::Diagnostic.