From 57872d0befb664a12944786b6ffcc8d326555f6d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 24 Sep 2024 13:33:41 -0700 Subject: [PATCH] Fix build of c-api and tests prtest:full --- crates/c-api/src/async.rs | 3 +++ tests/all/stack_creator.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/crates/c-api/src/async.rs b/crates/c-api/src/async.rs index ef577d87cded..c6066cf5402d 100644 --- a/crates/c-api/src/async.rs +++ b/crates/c-api/src/async.rs @@ -389,6 +389,9 @@ unsafe impl StackMemory for CHostStackMemory { let base = unsafe { top.sub(len) as usize }; base..base + len } + fn guard_range(&self) -> Range<*mut u8> { + std::ptr::null_mut()..std::ptr::null_mut() + } } pub type wasmtime_new_stack_memory_callback_t = extern "C" fn( diff --git a/tests/all/stack_creator.rs b/tests/all/stack_creator.rs index 9545908d1a18..e05629aeebfd 100644 --- a/tests/all/stack_creator.rs +++ b/tests/all/stack_creator.rs @@ -31,6 +31,9 @@ unsafe impl StackMemory for CustomStack { let base = self.base.as_ptr() as usize; base..base + self.len } + fn guard_range(&self) -> Range<*mut u8> { + std::ptr::null_mut()..std::ptr::null_mut() + } } // A creator that allocates stacks on the heap instead of mmap'ing.