Skip to content

Commit

Permalink
Get tests compiling again
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Nov 20, 2024
1 parent 3691d9c commit 6623f80
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 11 deletions.
1 change: 0 additions & 1 deletion crates/wasmtime/src/runtime/component/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ use crate::{
use crate::{FuncType, ValType};
use alloc::sync::Arc;
use core::any::Any;
use core::mem;
use core::ops::Range;
use core::ptr::NonNull;
#[cfg(feature = "std")]
Expand Down
2 changes: 1 addition & 1 deletion crates/wasmtime/src/runtime/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use core::future::Future;
use core::mem::{self, MaybeUninit};
use core::num::NonZeroUsize;
use core::pin::Pin;
use core::ptr::{self, NonNull};
use core::ptr::NonNull;
use wasmtime_environ::VMSharedTypeIndex;

/// A reference to the abstract `nofunc` heap value.
Expand Down
5 changes: 1 addition & 4 deletions crates/wasmtime/src/runtime/trampoline/func.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
//! Support for a calling of an imported function.

use crate::prelude::*;
use crate::runtime::vm::{
StoreBox, VMArrayCallHostFuncContext, VMContext, VMFuncRef, VMOpaqueContext,
};
use crate::runtime::vm::{StoreBox, VMArrayCallHostFuncContext, VMContext, VMOpaqueContext};
use crate::type_registry::RegisteredType;
use crate::{FuncType, ValRaw};
use core::ptr;

struct TrampolineState<F> {
func: F,
Expand Down
1 change: 0 additions & 1 deletion crates/wasmtime/src/runtime/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use crate::prelude::*;
use crate::store::StoreOpaque;
use alloc::sync::Arc;
use core::fmt;
use core::mem;
use core::ops::Deref;
use core::ops::DerefMut;
use core::ptr::NonNull;
Expand Down
2 changes: 0 additions & 2 deletions crates/wasmtime/src/runtime/vm/interpreter.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use crate::prelude::*;
use crate::runtime::vm::VMOpaqueContext;
use crate::ValRaw;
use core::marker;
use core::mem;
use core::ptr::NonNull;
use pulley_interpreter::interp::{Vm, XRegVal};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use super::{VMArrayCallNative, VMOpaqueContext};
use crate::prelude::*;
use crate::runtime::vm::{StoreBox, VMFuncRef};
use crate::ValRaw;
use core::any::Any;
use core::ptr::{self, NonNull};
use wasmtime_environ::{VMSharedTypeIndex, VM_ARRAY_CALL_HOST_FUNC_MAGIC};
Expand Down
3 changes: 2 additions & 1 deletion tests/disas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ impl Test {
// Use wasmtime::Config with its `emit_clif` option to get Wasmtime's
// code generator to jettison CLIF out the back.
let tempdir = TempDir::new().context("failed to make a tempdir")?;
let mut config = self.opts.config(Some(&self.config.target), None)?;
let mut config = self.opts.config(None)?;
config.target(&self.config.target)?;
match self.config.test {
TestKind::Clif | TestKind::Optimize => {
config.emit_clif(tempdir.path());
Expand Down

0 comments on commit 6623f80

Please sign in to comment.