We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc8a3e3 commit fe0ef9aCopy full SHA for fe0ef9a
library/std/src/sys/common/thread_local/fast_local.rs
@@ -87,10 +87,6 @@ pub macro thread_local_inner {
87
static __KEY: $crate::thread::local_impl::Key<$t> =
88
$crate::thread::local_impl::Key::<$t>::new();
89
90
- // FIXME: remove the #[allow(...)] marker when macros don't
91
- // raise warning for missing/extraneous unsafe blocks anymore.
92
- // See https://github.com/rust-lang/rust/issues/74838.
93
- #[allow(unused_unsafe)]
94
unsafe {
95
__KEY.get(move || {
96
if let $crate::option::Option::Some(init) = init {
0 commit comments