Add missing unsafe marker.

This is now necessary because of deny(unsafe_op_in_unsafe_fn).
This commit is contained in:
Mara Bos 2022-04-11 14:06:18 +02:00
parent 8a2c9a9615
commit d4e44a6391

View file

@ -194,7 +194,7 @@ macro_rules! __thread_local_inner {
#[cfg(all(target_family = "wasm", not(target_feature = "atomics")))]
{
static mut VAL: $t = INIT_EXPR;
$crate::option::Option::Some(&VAL)
unsafe { $crate::option::Option::Some(&VAL) }
}
// If the platform has support for `#[thread_local]`, use it.