From b509ca0aa5476ebf653f0b89642abe15a662530a Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 5 Apr 2019 14:07:28 -0700 Subject: [PATCH] Tidy up unused import warnings. --- wasmtime-environ/src/func_environ.rs | 6 ++++-- wasmtime-jit/src/compiler.rs | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) 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, };