Enum cranelift_codegen::CodegenError
source · pub enum CodegenError {
Verifier(VerifierErrors),
ImplLimitExceeded,
CodeTooLarge,
}
Expand description
A compilation error.
When Cranelift fails to compile a function, it will return one of these error codes.
Variants§
Verifier(VerifierErrors)
A list of IR verifier errors.
This always represents a bug, either in the code that generated IR for Cranelift, or a bug in Cranelift itself.
ImplLimitExceeded
An implementation limit was exceeded.
Cranelift can compile very large and complicated functions, but the implementation has limits that cause compilation to fail when they are exceeded.
CodeTooLarge
The code size for the function is too large.
Different target ISAs may impose a limit on the size of a compiled function. If that limit is exceeded, compilation fails.
Trait Implementations§
source§impl Debug for CodegenError
impl Debug for CodegenError
source§impl Display for CodegenError
impl Display for CodegenError
source§impl Fail for CodegenError
impl Fail for CodegenError
source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresource§impl From<VerifierErrors> for CodegenError
impl From<VerifierErrors> for CodegenError
source§fn from(e: VerifierErrors) -> Self
fn from(e: VerifierErrors) -> Self
Converts to this type from the input type.