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§