Trait rustc_const_eval::ReportErrorExt
source · pub trait ReportErrorExt {
// Required methods
fn diagnostic_message(&self) -> DiagnosticMessage;
fn add_args<G: EmissionGuarantee>(
self,
handler: &Handler,
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.