Skip to content

Commit a41c5f9

Browse files
authored
Re-add #[allow(unused)] attr
1 parent 6155b9a commit a41c5f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/std/src/sys/unix/thread_local_dtor.rs

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
8989
}
9090

9191
#[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)
9293
pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
9394
use crate::sys_common::thread_local_dtor::register_dtor_fallback;
9495
register_dtor_fallback(t, dtor);

0 commit comments

Comments
 (0)