pub enum IrError {
Show 53 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,
VerifyReturnRefTypeValue(String, String),
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
VerifyReturnRefTypeValue(String, String)
VerifyStateKeyBadType
VerifyStateDestBadType(String)
VerifyStoreMismatchedTypes
VerifyStoreNonExistentPointer
VerifyStoreToNonPointer
VerifyUntypedValuePassedToFunction
VerifyInvalidGtfIndexType
VerifyLogId
VerifyMismatchedLoggedTypes
VerifyRevertCodeBadType
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()