pub enum IrError {
Show 38 variants
FunctionLocalClobbered(String, String),
InvalidMetadatum,
MisplacedTerminator(String),
MissingBlock(String),
MissingTerminator(String),
ParseFailure(String, String),
ValueNotFound(String),
VerifyAccessElementInconsistentTypes,
VerifyAccessElementOnNonArray,
VerifyAccessElementNonIntIndex,
VerifyAccessValueInconsistentTypes,
VerifyAccessValueInvalidIndices,
VerifyAccessValueOnNonStruct,
VerifyArgumentValueIsNotArgument(String),
VerifyBranchToMissingBlock(String),
VerifyCallArgTypeMismatch(String),
VerifyCallToMissingFunction(String),
VerifyCmpBadTypes(String, String),
VerifyCmpTypeMismatch(String, String),
VerifyCmpUnknownTypes,
VerifyConditionExprNotABool,
VerifyContractCallBadTypes(String),
VerifyGetNonExistentPointer,
VerifyInsertElementOfIncorrectType,
VerifyInsertValueOfIncorrectType,
VerifyLoadFromNonPointer,
VerifyLoadNonExistentPointer,
VerifyMismatchedReturnTypes(String),
VerifyPhiFromMissingBlock(String),
VerifyPhiInconsistentTypes,
VerifyPhiNonUniqueLabels,
VerifyPtrCastFromNonPointer,
VerifyStateKeyBadType,
VerifyStateDestBadType(String),
VerifyStoreMismatchedTypes,
VerifyStoreNonExistentPointer,
VerifyStoreToNonPointer,
VerifyUntypedValuePassedToFunction,
}
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
MisplacedTerminator(String)
MissingBlock(String)
MissingTerminator(String)
ParseFailure(String, String)
ValueNotFound(String)
VerifyAccessElementInconsistentTypes
VerifyAccessElementOnNonArray
VerifyAccessElementNonIntIndex
VerifyAccessValueInconsistentTypes
VerifyAccessValueInvalidIndices
VerifyAccessValueOnNonStruct
VerifyArgumentValueIsNotArgument(String)
VerifyBranchToMissingBlock(String)
VerifyCallArgTypeMismatch(String)
VerifyCallToMissingFunction(String)
VerifyCmpBadTypes(String, String)
VerifyCmpTypeMismatch(String, String)
VerifyCmpUnknownTypes
VerifyConditionExprNotABool
VerifyContractCallBadTypes(String)
VerifyGetNonExistentPointer
VerifyInsertElementOfIncorrectType
VerifyInsertValueOfIncorrectType
VerifyLoadFromNonPointer
VerifyLoadNonExistentPointer
VerifyMismatchedReturnTypes(String)
VerifyPhiFromMissingBlock(String)
VerifyPhiInconsistentTypes
VerifyPhiNonUniqueLabels
VerifyPtrCastFromNonPointer
VerifyStateKeyBadType
VerifyStateDestBadType(String)
VerifyStoreMismatchedTypes
VerifyStoreNonExistentPointer
VerifyStoreToNonPointer
VerifyUntypedValuePassedToFunction
Trait Implementations
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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