We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6155b9a commit a41c5f9Copy full SHA for a41c5f9
library/std/src/sys/unix/thread_local_dtor.rs
@@ -89,6 +89,7 @@ pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
89
}
90
91
#[cfg(any(target_os = "vxworks", target_os = "horizon", target_os = "emscripten"))]
92
+#[cfg_attr(target_family = "wasm", allow(unused))] // might remain unused depending on target details (e.g. wasm32-unknown-emscripten)
93
pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
94
use crate::sys_common::thread_local_dtor::register_dtor_fallback;
95
register_dtor_fallback(t, dtor);
0 commit comments