1
Fork 0

sync thread_local key conditions exactly with what the macro uses

This commit is contained in:
Ralf Jung 2022-10-07 16:46:16 +02:00
parent 5854680388
commit 600ac6959a
4 changed files with 32 additions and 10 deletions

View file

@ -17,6 +17,7 @@
target_os = "redox",
target_os = "emscripten"
))]
#[cfg_attr(target_family = "wasm", allow(unused))] // might remain unused depending on target details (e.g. wasm32-unknown-emscripten)
pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
use crate::mem;
use crate::sys_common::thread_local_dtor::register_dtor_fallback;