Trait rustc_const_eval::ReportErrorExt
source · pub trait ReportErrorExt {
// Required methods
fn diagnostic_message(&self) -> DiagnosticMessage;
fn add_args<G: EmissionGuarantee>(
self,
dcx: &DiagCtxt,
builder: &mut DiagnosticBuilder<'_, G>
);
// Provided method
fn debug(self) -> String
where Self: Sized { ... }
}Required Methods§
sourcefn diagnostic_message(&self) -> DiagnosticMessage
fn diagnostic_message(&self) -> DiagnosticMessage
Returns the diagnostic message for this error.
fn add_args<G: EmissionGuarantee>( self, dcx: &DiagCtxt, builder: &mut DiagnosticBuilder<'_, G> )
Provided Methods§
Object Safety§
This trait is not object safe.