rustc_const_eval::errors

Trait 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,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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 InterpErrorKind<'tcx>

source§

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

source§

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

Implementors§