pub trait StructuredDiagnostic<'tcx> {
fn session(&self) -> &Session;
fn code(&self) -> DiagnosticId;
fn diagnostic_common(&self) -> DiagnosticBuilder<'tcx, ErrorGuaranteed>;
fn diagnostic(&self) -> DiagnosticBuilder<'tcx, ErrorGuaranteed> { ... }
fn diagnostic_regular(
&self,
err: DiagnosticBuilder<'tcx, ErrorGuaranteed>
) -> DiagnosticBuilder<'tcx, ErrorGuaranteed> { ... }
fn diagnostic_extended(
&self,
err: DiagnosticBuilder<'tcx, ErrorGuaranteed>
) -> DiagnosticBuilder<'tcx, ErrorGuaranteed> { ... }
}
Required Methods
source
fn code(&self) -> DiagnosticId
source
fn diagnostic_common(&self) -> DiagnosticBuilder<'tcx, ErrorGuaranteed>
Provided Methods
source
fn diagnostic(&self) -> DiagnosticBuilder<'tcx, ErrorGuaranteed>
sourcefn diagnostic_regular(
fn diagnostic_regular(
&self,
err: DiagnosticBuilder<'tcx, ErrorGuaranteed>
) -> DiagnosticBuilder<'tcx, ErrorGuaranteed>
sourcefn diagnostic_extended(