Skip to content

Commit

Permalink
Add missing unsafe marker.
Browse files Browse the repository at this point in the history
This is now necessary because of deny(unsafe_op_in_unsafe_fn).
  • Loading branch information
m-ou-se committed Apr 12, 2022
1 parent 8a2c9a9 commit d4e44a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/thread/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d4e44a6

Please sign in to comment.