pub enum IrError {
Show 61 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,
VerifyMemcopyNonExistentPointer,
VerifyMismatchedReturnTypes(String),
VerifyBlockArgMalformed,
VerifyPtrCastFromNonPointer,
VerifyPtrCastToNonPointer,
VerifyReturnRefTypeValue(String, String),
VerifyStateAccessNumOfSlots,
VerifyStateKeyBadType,
VerifyStateDestBadType(String),
VerifyStoreMismatchedTypes,
VerifyStoreNonExistentPointer,
VerifyStoreToNonPointer,
VerifyUntypedValuePassedToFunction,
VerifyInvalidGtfIndexType,
VerifyLogId,
VerifyMismatchedLoggedTypes,
VerifyRevertCodeBadType,
VerifySmoRecipientBadType,
VerifySmoBadRecipientAndMessageType,
VerifySmoMessageSize,
VerifySmoCoins,
VerifySmoOutputIndex,
}
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
VerifyMemcopyNonExistentPointer
VerifyMismatchedReturnTypes(String)
VerifyBlockArgMalformed
VerifyPtrCastFromNonPointer
VerifyPtrCastToNonPointer
VerifyReturnRefTypeValue(String, String)
VerifyStateAccessNumOfSlots
VerifyStateKeyBadType
VerifyStateDestBadType(String)
VerifyStoreMismatchedTypes
VerifyStoreNonExistentPointer
VerifyStoreToNonPointer
VerifyUntypedValuePassedToFunction
VerifyInvalidGtfIndexType
VerifyLogId
VerifyMismatchedLoggedTypes
VerifyRevertCodeBadType
VerifySmoRecipientBadType
VerifySmoBadRecipientAndMessageType
VerifySmoMessageSize
VerifySmoCoins
VerifySmoOutputIndex
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)>
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()