pub enum JitCompileError {
Empty,
FallsOffTheEnd,
BadJumpTarget {
op_index: usize,
target: usize,
},
Assembly(String),
Unsupported(&'static str),
}Expand description
Compile errors — structural, found before any code is emitted.
Variants§
Empty
The program is empty.
FallsOffTheEnd
Execution can run off the end: the final op must be Return or Jump.
BadJumpTarget
A jump target is outside the program.
Assembly(String)
Assembly failed (missing hole/patch/map errors).
Unsupported(&'static str)
An op the per-piece stencil tier has no lowering for (e.g.
MicroOp::StrAppend, which is emitted ONLY for the contiguous regalloc
backend). The caller declines (falls back to bytecode), so this is never a
hard failure — it just routes around the stencil tier.
Trait Implementations§
Source§impl Debug for JitCompileError
impl Debug for JitCompileError
Source§impl Display for JitCompileError
impl Display for JitCompileError
Source§impl Error for JitCompileError
impl Error for JitCompileError
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()
Source§impl PartialEq for JitCompileError
impl PartialEq for JitCompileError
Source§fn eq(&self, other: &JitCompileError) -> bool
fn eq(&self, other: &JitCompileError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for JitCompileError
impl StructuralPartialEq for JitCompileError
Auto Trait Implementations§
impl Freeze for JitCompileError
impl RefUnwindSafe for JitCompileError
impl Send for JitCompileError
impl Sync for JitCompileError
impl Unpin for JitCompileError
impl UnsafeUnpin for JitCompileError
impl UnwindSafe for JitCompileError
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