From 82060ea3e7c65fb88f0825b6615fd513f6977e72 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 23 Apr 2025 12:12:58 -0700 Subject: [PATCH] Switch to context slot 0 for async Slot 1 is no longer valid --- crates/guest-rust/rt/src/async_support.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/guest-rust/rt/src/async_support.rs b/crates/guest-rust/rt/src/async_support.rs index 22f8d7855..9ef7f6f43 100644 --- a/crates/guest-rust/rt/src/async_support.rs +++ b/crates/guest-rust/rt/src/async_support.rs @@ -444,7 +444,7 @@ fn context_get() -> *mut u8 { #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "$root")] extern "C" { - #[link_name = "[context-get-1]"] + #[link_name = "[context-get-0]"] fn get() -> *mut u8; } @@ -460,7 +460,7 @@ unsafe fn context_set(value: *mut u8) { #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "$root")] extern "C" { - #[link_name = "[context-set-1]"] + #[link_name = "[context-set-0]"] fn set(value: *mut u8); }