We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aeb01c3 commit 0664b8aCopy full SHA for 0664b8a
library/std/src/thread/local.rs
@@ -179,6 +179,7 @@ macro_rules! __thread_local_inner {
179
// used to generate the `LocalKey` value for const-initialized thread locals
180
(@key $t:ty, const $init:expr) => {{
181
#[cfg_attr(not(windows), inline(always))] // see comments below
182
+ #[deny(unsafe_op_in_unsafe_fn)]
183
unsafe fn __getit(
184
_init: $crate::option::Option<&mut $crate::option::Option<$t>>,
185
) -> $crate::option::Option<&'static $t> {
0 commit comments