Make some things more consistent between define_function and define_function_bytes

This commit is contained in:
bjorn3
2020-11-09 10:07:18 +01:00
parent 2ca2255a4a
commit 856f799ade
3 changed files with 22 additions and 25 deletions

View File

@@ -162,9 +162,6 @@ pub enum ModuleError {
/// Indicates an identifier was defined, but was declared as an import
#[error("Invalid to define identifier declared as an import: {0}")]
InvalidImportDefinition(String),
/// Indicates a too-long function was defined
#[error("Function {0} exceeds the maximum function size")]
FunctionTooLarge(String),
/// Wraps a `cranelift-codegen` error
#[error("Compilation error: {0}")]
Compilation(#[from] CodegenError),