Trait rustc_const_eval::errors::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.

Implementors§