pub enum IrError {
Show 16 variants
TypeMismatch {
expected: IrType,
actual: IrType,
},
UndefinedValue(ValueId),
UndefinedBlock(BlockId),
UnterminatedBlock(BlockId),
InvalidOperation {
op: String,
ty: IrType,
},
InvalidCast {
from: IrType,
to: IrType,
},
CapabilityNotSupported(String),
ParameterCountMismatch {
expected: usize,
actual: usize,
},
InvalidVectorSize(u8),
InvalidArraySize(usize),
MissingEntryBlock,
DuplicateDefinition(String),
InvalidPhi(String),
ControlFlowError(String),
ValidationError(String),
Internal(String),
}Expand description
IR errors.
Variants§
TypeMismatch
Type mismatch.
UndefinedValue(ValueId)
Undefined value reference.
UndefinedBlock(BlockId)
Undefined block reference.
UnterminatedBlock(BlockId)
Block not terminated.
InvalidOperation
Invalid operation for type.
InvalidCast
Invalid cast.
CapabilityNotSupported(String)
Capability not supported.
ParameterCountMismatch
Invalid parameter count.
InvalidVectorSize(u8)
Invalid vector size.
InvalidArraySize(usize)
Invalid array size.
MissingEntryBlock
Missing entry block.
DuplicateDefinition(String)
Duplicate definition.
InvalidPhi(String)
Invalid phi node.
ControlFlowError(String)
Control flow error.
ValidationError(String)
Validation error.
Internal(String)
Internal error.
Trait Implementations§
Source§impl Error for IrError
impl Error for IrError
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 IrError
impl RefUnwindSafe for IrError
impl Send for IrError
impl Sync for IrError
impl Unpin for IrError
impl UnwindSafe for IrError
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