Enum cranelift_module::ModuleError
source · pub enum ModuleError {
Undeclared(String),
IncompatibleDeclaration(String),
IncompatibleSignature(String, Signature, Signature),
DuplicateDefinition(String),
InvalidImportDefinition(String),
Compilation(CodegenError),
Allocation {
message: &'static str,
err: Error,
},
Backend(Error),
}
Expand description
Error messages for all Module
methods
Variants§
Undeclared(String)
Indicates an identifier was used before it was declared
IncompatibleDeclaration(String)
Indicates an identifier was used as data/function first, but then used as the other
IncompatibleSignature(String, Signature, Signature)
Indicates a function identifier was declared with a different signature than declared previously
DuplicateDefinition(String)
Indicates an identifier was defined more than once
InvalidImportDefinition(String)
Indicates an identifier was defined, but was declared as an import
Compilation(CodegenError)
Wraps a cranelift-codegen
error
Allocation
Fields
Memory allocation failure from a backend
Backend(Error)
Wraps a generic error from a backend
Trait Implementations§
source§impl Debug for ModuleError
impl Debug for ModuleError
source§impl Display for ModuleError
impl Display for ModuleError
source§impl Error for ModuleError
impl Error for ModuleError
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()
source§impl From<CodegenError> for ModuleError
impl From<CodegenError> for ModuleError
source§fn from(source: CodegenError) -> Self
fn from(source: CodegenError) -> Self
Converts to this type from the input type.
source§impl<'a> From<CompileError<'a>> for ModuleError
impl<'a> From<CompileError<'a>> for ModuleError
source§fn from(err: CompileError<'a>) -> Self
fn from(err: CompileError<'a>) -> Self
Converts to this type from the input type.