pub enum ValidationError {
Counterexample {
wasm_op_label: String,
description: String,
},
UnsupportedOp(WasmOp),
SolverUnknown(String),
Internal(String),
}Expand description
Validation failure reasons.
Variants§
Counterexample
The selection is semantically wrong; the validator found a counterexample (a concrete input where WASM and ARM disagree).
UnsupportedOp(WasmOp)
The validator does not support this WASM op. This is the common case
during the per-op rollout (see docs/validator-pattern.md).
SolverUnknown(String)
Z3 returned unknown (timeout or unsupported theory).
Internal(String)
Internal encoding error (e.g. the emitted ARM sequence uses an instruction the validator’s lowering model does not cover).
Trait Implementations§
Source§impl Debug for ValidationError
impl Debug for ValidationError
Source§impl Display for ValidationError
impl Display for ValidationError
Source§impl Error for ValidationError
impl Error for ValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnsafeUnpin for ValidationError
impl UnwindSafe for ValidationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more