pub enum IrError {
Show 52 variants
FunctionLocalClobbered(String, String),
InvalidMetadatum(String),
InvalidPhi,
MisplacedTerminator(String),
MissingBlock(String),
MissingTerminator(String),
ParseFailure(String, String),
RemoveMissingBlock(String),
ValueNotFound(String),
VerifyAccessElementInconsistentTypes,
VerifyAccessElementOnNonArray,
VerifyAccessElementNonIntIndex,
VerifyAccessValueInconsistentTypes,
VerifyAccessValueInvalidIndices,
VerifyAccessValueOnNonStruct,
VerifyArgumentValueIsNotArgument(String),
VerifyAddrOfUnknownSourceType,
VerifyAddrOfCopyType,
VerifyBitcastUnknownSourceType,
VerifyBitcastFromNonCopyType(String),
VerifyBitcastToNonCopyType(String),
VerifyBitcastBetweenInvalidTypes(String, String),
VerifyBinaryOpIncorrectArgType,
VerifyBranchToMissingBlock(String),
VerifyBranchParamsMismatch,
VerifyCallArgTypeMismatch(String),
VerifyCallToMissingFunction(String),
VerifyCmpBadTypes(String, String),
VerifyCmpTypeMismatch(String, String),
VerifyCmpUnknownTypes,
VerifyConditionExprNotABool,
VerifyContractCallBadTypes(String),
VerifyGetNonExistentPointer,
VerifyInsertElementOfIncorrectType,
VerifyInsertValueOfIncorrectType,
VerifyIntToPtrFromNonIntegerType(String),
VerifyIntToPtrToCopyType(String),
VerifyIntToPtrUnknownSourceType,
VerifyLoadFromNonPointer,
VerifyMismatchedReturnTypes(String),
VerifyBlockArgMalformed,
VerifyPtrCastFromNonPointer,
VerifyStateKeyBadType,
VerifyStateDestBadType(String),
VerifyStoreMismatchedTypes,
VerifyStoreNonExistentPointer,
VerifyStoreToNonPointer,
VerifyUntypedValuePassedToFunction,
VerifyInvalidGtfIndexType,
VerifyLogId,
VerifyMismatchedLoggedTypes,
VerifyRevertCodeBadType,
}
Expand description
These errors are for internal IR failures, not designed to be useful to a Sway developer, but
more for users of the sway-ir
crate, i.e., compiler developers.
XXX They’re not very rich and could do with a little more verbosity.
Variants
FunctionLocalClobbered(String, String)
InvalidMetadatum(String)
InvalidPhi
MisplacedTerminator(String)
MissingBlock(String)
MissingTerminator(String)
ParseFailure(String, String)
RemoveMissingBlock(String)
ValueNotFound(String)
VerifyAccessElementInconsistentTypes
VerifyAccessElementOnNonArray
VerifyAccessElementNonIntIndex
VerifyAccessValueInconsistentTypes
VerifyAccessValueInvalidIndices
VerifyAccessValueOnNonStruct
VerifyArgumentValueIsNotArgument(String)
VerifyAddrOfUnknownSourceType
VerifyAddrOfCopyType
VerifyBitcastUnknownSourceType
VerifyBitcastFromNonCopyType(String)
VerifyBitcastToNonCopyType(String)
VerifyBitcastBetweenInvalidTypes(String, String)
VerifyBinaryOpIncorrectArgType
VerifyBranchToMissingBlock(String)
VerifyBranchParamsMismatch
VerifyCallArgTypeMismatch(String)
VerifyCallToMissingFunction(String)
VerifyCmpBadTypes(String, String)
VerifyCmpTypeMismatch(String, String)
VerifyCmpUnknownTypes
VerifyConditionExprNotABool
VerifyContractCallBadTypes(String)
VerifyGetNonExistentPointer
VerifyInsertElementOfIncorrectType
VerifyInsertValueOfIncorrectType
VerifyIntToPtrFromNonIntegerType(String)
VerifyIntToPtrToCopyType(String)
VerifyIntToPtrUnknownSourceType
VerifyLoadFromNonPointer
VerifyMismatchedReturnTypes(String)
VerifyBlockArgMalformed
VerifyPtrCastFromNonPointer
VerifyStateKeyBadType
VerifyStateDestBadType(String)
VerifyStoreMismatchedTypes
VerifyStoreNonExistentPointer
VerifyStoreToNonPointer
VerifyUntypedValuePassedToFunction
VerifyInvalidGtfIndexType
VerifyLogId
VerifyMismatchedLoggedTypes
VerifyRevertCodeBadType
Trait Implementations
sourceimpl Error for IrError
impl Error for IrError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for IrError
impl Send for IrError
impl Sync for IrError
impl Unpin for IrError
impl UnwindSafe for IrError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more