Trait rustc_middle::mir::interpret::error::MachineStopType
source · pub trait MachineStopType: Any + Debug + Send {
// Required methods
fn diagnostic_message(&self) -> DiagnosticMessage;
fn add_args(
self: Box<Self>,
adder: &mut dyn FnMut(DiagnosticArgName, DiagnosticArgValue)
);
}Expand description
A trait for machine-specific errors (or other “machine stop” conditions).
Required Methods§
sourcefn diagnostic_message(&self) -> DiagnosticMessage
fn diagnostic_message(&self) -> DiagnosticMessage
The diagnostic message for this error
sourcefn add_args(
self: Box<Self>,
adder: &mut dyn FnMut(DiagnosticArgName, DiagnosticArgValue)
)
fn add_args( self: Box<Self>, adder: &mut dyn FnMut(DiagnosticArgName, DiagnosticArgValue) )
Add diagnostic arguments by passing name and value pairs to adder, which are passed to
fluent for formatting the translated diagnostic message.