rustc_const_eval

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§

fn diagnostic_message(&self) -> DiagMessage

Source§

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

Source§

impl ReportErrorExt for UnsupportedOpInfo

Source§

fn diagnostic_message(&self) -> DiagMessage

Source§

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

Source§

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

Source§

fn diagnostic_message(&self) -> DiagMessage

Source§

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

Source§

impl<'tcx> ReportErrorExt for InterpErrorKind<'tcx>

Source§

fn diagnostic_message(&self) -> DiagMessage

Source§

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

Source§

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

Source§

fn diagnostic_message(&self) -> DiagMessage

Source§

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

Source§

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

Source§

fn diagnostic_message(&self) -> DiagMessage

Source§

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

Implementors§