We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0216a1 commit bd50ee2Copy full SHA for bd50ee2
1 file changed
crates/guest-rust/rt/src/async_support/cabi.rs
@@ -46,6 +46,7 @@
46
47
use core::ffi::c_void;
48
49
+#[cfg(target_family = "wasm")]
50
extern "C" {
51
/// Sets the global task pointer to `ptr` provided. Returns the previous
52
/// value.
@@ -61,6 +62,12 @@ extern "C" {
61
62
pub fn wasip3_task_set(ptr: *mut wasip3_task) -> *mut wasip3_task;
63
}
64
65
+#[cfg(not(target_family = "wasm"))]
66
+pub unsafe extern "C" fn wasip3_task_set(ptr: *mut wasip3_task) -> *mut wasip3_task {
67
+ let _ = ptr;
68
+ unreachable!();
69
+}
70
+
71
/// The first version of `wasip3_task` which implies the existence of the
72
/// fields `ptr`, `waitable_register`, and `waitable_unregister`.
73
pub const WASIP3_TASK_V1: u32 = 1;
0 commit comments