Trait rustc_const_eval::ReportErrorExt

source ·
pub trait ReportErrorExt {
    // Required methods
    fn diagnostic_message(&self) -> DiagMessage;
    fn add_args<G: EmissionGuarantee>(self, diag: &mut Diag<'_, G>);

    // Provided method
    fn debug(self) -> String
       where Self: Sized { ... }
}

Required Methods§

source

fn diagnostic_message(&self) -> DiagMessage

Returns the diagnostic message for this error.

source

fn add_args<G: EmissionGuarantee>(self, diag: &mut Diag<'_, G>)

Provided Methods§

source

fn debug(self) -> String
where Self: Sized,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ReportErrorExt for ResourceExhaustionInfo

source§

impl ReportErrorExt for UnsupportedOpInfo

source§

impl<'a> ReportErrorExt for UndefinedBehaviorInfo<'a>

source§

impl<'tcx> ReportErrorExt for InterpError<'tcx>

source§

impl<'tcx> ReportErrorExt for InvalidProgramInfo<'tcx>

source§

impl<'tcx> ReportErrorExt for ValidationErrorInfo<'tcx>

Implementors§