Add missing unsafe marker.
This is now necessary because of deny(unsafe_op_in_unsafe_fn).
This commit is contained in:
parent
8a2c9a9615
commit
d4e44a6391
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user