pub trait StructuredDiag<'tcx> {
    // Required methods
    fn session(&self) -> &Session;
    fn code(&self) -> ErrCode;
    fn diagnostic_common(&self) -> Diag<'tcx>;

    // Provided methods
    fn diagnostic(&self) -> Diag<'tcx> { ... }
    fn diagnostic_regular(&self, err: Diag<'tcx>) -> Diag<'tcx> { ... }
    fn diagnostic_extended(&self, err: Diag<'tcx>) -> Diag<'tcx> { ... }
}

Required Methods§

source

fn session(&self) -> &Session

source

fn code(&self) -> ErrCode

source

fn diagnostic_common(&self) -> Diag<'tcx>

Provided Methods§

source

fn diagnostic(&self) -> Diag<'tcx>

source

fn diagnostic_regular(&self, err: Diag<'tcx>) -> Diag<'tcx>

source

fn diagnostic_extended(&self, err: Diag<'tcx>) -> Diag<'tcx>

Implementors§

source§

impl<'tcx> StructuredDiag<'tcx> for MissingCastForVariadicArg<'tcx, '_>

source§

impl<'tcx> StructuredDiag<'tcx> for SizedUnsizedCast<'tcx>

source§

impl<'tcx> StructuredDiag<'tcx> for WrongNumberOfGenericArgs<'_, 'tcx>