diff --git a/wasmtime-environ/src/func_environ.rs b/wasmtime-environ/src/func_environ.rs index 57f55ab787..fbe675647f 100644 --- a/wasmtime-environ/src/func_environ.rs +++ b/wasmtime-environ/src/func_environ.rs @@ -14,9 +14,11 @@ use cranelift_codegen::ir::{ use cranelift_codegen::isa::TargetFrontendConfig; use cranelift_entity::EntityRef; use cranelift_wasm::{ - self, DefinedFuncIndex, DefinedGlobalIndex, DefinedMemoryIndex, DefinedTableIndex, FuncIndex, - GlobalIndex, GlobalVariable, MemoryIndex, SignatureIndex, TableIndex, WasmResult, + self, FuncIndex, GlobalIndex, GlobalVariable, MemoryIndex, SignatureIndex, TableIndex, + WasmResult, }; +#[cfg(feature = "lightbeam")] +use cranelift_wasm::{DefinedFuncIndex, DefinedGlobalIndex, DefinedMemoryIndex, DefinedTableIndex}; use std::vec::Vec; /// Compute an `ir::ExternalName` for a given wasm function index. diff --git a/wasmtime-jit/src/compiler.rs b/wasmtime-jit/src/compiler.rs index e100684fd4..62ab9f35b6 100644 --- a/wasmtime-jit/src/compiler.rs +++ b/wasmtime-jit/src/compiler.rs @@ -15,7 +15,6 @@ use std::boxed::Box; use std::string::String; use std::vec::Vec; use wasmtime_debug::{emit_debugsections_image, DebugInfoData}; -use wasmtime_environ::cranelift; use wasmtime_environ::{ Compilation, CompileError, Compiler as _C, FunctionBodyData, Module, Relocations, Tunables, };