Switch from error_core to failure.
This commit is contained in:
@@ -19,14 +19,10 @@ cretonne-frontend = { path = "../frontend", version = "0.1.0", default_features
|
||||
version = "0.1.1"
|
||||
optional = true
|
||||
|
||||
[dependencies.error_core]
|
||||
version = "0.1.0"
|
||||
optional = true
|
||||
|
||||
[dev-dependencies]
|
||||
tempdir = "0.3.5"
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = ["cretonne/std", "cretonne-frontend/std"]
|
||||
no_std = ["hashmap_core", "error_core", "cretonne/no_std", "cretonne-frontend/no_std"]
|
||||
no_std = ["hashmap_core", "cretonne/no_std", "cretonne-frontend/no_std"]
|
||||
|
||||
@@ -9,7 +9,6 @@ use cretonne::ir::types::*;
|
||||
use cretonne::cursor::FuncCursor;
|
||||
use cretonne::settings;
|
||||
use wasmparser;
|
||||
use std::error::Error;
|
||||
use std::vec::Vec;
|
||||
use std::string::String;
|
||||
|
||||
@@ -387,7 +386,7 @@ impl<'data> ModuleEnvironment<'data> for DummyEnvironment {
|
||||
let reader = wasmparser::BinaryReader::new(body_bytes);
|
||||
self.trans
|
||||
.translate_from_reader(reader, &mut func, &mut func_environ)
|
||||
.map_err(|e| String::from(e.description()))?;
|
||||
.map_err(|e| format!("{}", e))?;
|
||||
func
|
||||
};
|
||||
self.func_bytecode_sizes.push(body_bytes.len());
|
||||
|
||||
@@ -20,8 +20,6 @@ extern crate alloc;
|
||||
|
||||
#[cfg(feature = "no_std")]
|
||||
extern crate hashmap_core;
|
||||
#[cfg(feature = "no_std")]
|
||||
extern crate error_core;
|
||||
|
||||
extern crate wasmparser;
|
||||
extern crate cton_frontend;
|
||||
@@ -50,7 +48,4 @@ mod std {
|
||||
pub mod collections {
|
||||
pub use hashmap_core::{HashMap, map as hash_map};
|
||||
}
|
||||
pub mod error {
|
||||
pub use error_core::Error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user