Skip to content

Commit 0f62967

Browse files
authored
wasmtime-winch: Use wasmtime_environ::error instead of anyhow (#12205)
1 parent c7cab27 commit 0f62967

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/winch/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ workspace = true
1515
winch-codegen = { workspace = true }
1616
target-lexicon = { workspace = true }
1717
wasmtime-environ = { workspace = true }
18-
anyhow = { workspace = true }
1918
object = { workspace = true, features = ['std'] }
2019
cranelift-codegen = { workspace = true }
2120
wasmtime-cranelift = { workspace = true }

crates/winch/src/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use crate::compiler::Compiler;
2-
use anyhow::{Result, bail};
32
use std::sync::Arc;
43
use target_lexicon::Triple;
54
use wasmtime_cranelift::isa_builder::IsaBuilder;
5+
use wasmtime_environ::error::{Result, bail};
66
use wasmtime_environ::{CompilerBuilder, Setting, Tunables};
77
use winch_codegen::{TargetIsa, isa};
88

crates/winch/src/compiler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use anyhow::Result;
21
use cranelift_codegen::isa::unwind::UnwindInfoKind;
32
use object::write::{Object, SymbolId};
43
use std::any::Any;
@@ -8,6 +7,7 @@ use wasmparser::FuncValidatorAllocations;
87
use wasmtime_cranelift::CompiledFunction;
98
#[cfg(feature = "component-model")]
109
use wasmtime_environ::component::ComponentTranslation;
10+
use wasmtime_environ::error::Result;
1111
use wasmtime_environ::{
1212
CompileError, CompiledFunctionBody, DefinedFuncIndex, FuncKey, FunctionBodyData, FunctionLoc,
1313
ModuleTranslation, ModuleTypesBuilder, PrimaryMap, StaticModuleIndex, Tunables, VMOffsets,

0 commit comments

Comments
 (0)