diff --git a/tokio/src/io/driver/registration.rs b/tokio/src/io/driver/registration.rs index dbc34592e3a..281a48a0bcb 100644 --- a/tokio/src/io/driver/registration.rs +++ b/tokio/src/io/driver/registration.rs @@ -115,7 +115,7 @@ impl Registration { // Uses the poll path, requiring the caller to ensure mutual exclusion for // correctness. Only the last task to call this function is notified. - #[cfg(not(all(target_arch = "wasm32", target_os = "wasi")))] + #[cfg(not(all(target_family = "wasm", target_os = "wasi")))] pub(crate) fn poll_read_io( &self, cx: &mut Context<'_>,