Trait rustc_typeck::structured_errors::StructuredDiagnostic[][src]

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

Required methods

Provided methods

Implementors