Structs§

  • Marker type which enables implementation of create_bug and emit_bug functions 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_fatal and emit_fatal functions for fatal diagnostics.

Traits§

  • Trait for types that DiagnosticBuilder::emit can 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.