Skip to content

Commit d4e44a6

Browse files
committed
Add missing unsafe marker.
This is now necessary because of deny(unsafe_op_in_unsafe_fn).
1 parent 8a2c9a9 commit d4e44a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/thread/local.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ macro_rules! __thread_local_inner {
194194
#[cfg(all(target_family = "wasm", not(target_feature = "atomics")))]
195195
{
196196
static mut VAL: $t = INIT_EXPR;
197-
$crate::option::Option::Some(&VAL)
197+
unsafe { $crate::option::Option::Some(&VAL) }
198198
}
199199

200200
// If the platform has support for `#[thread_local]`, use it.

0 commit comments

Comments
 (0)