We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a2c9a9 commit d4e44a6Copy full SHA for d4e44a6
library/std/src/thread/local.rs
@@ -194,7 +194,7 @@ macro_rules! __thread_local_inner {
194
#[cfg(all(target_family = "wasm", not(target_feature = "atomics")))]
195
{
196
static mut VAL: $t = INIT_EXPR;
197
- $crate::option::Option::Some(&VAL)
+ unsafe { $crate::option::Option::Some(&VAL) }
198
}
199
200
// If the platform has support for `#[thread_local]`, use it.
0 commit comments