Skip to content

Commit

Permalink
delete [allow(...)] from issue rust-lang#74838
Browse files Browse the repository at this point in the history
  • Loading branch information
mj10021 committed Jul 24, 2023
1 parent fc8a3e3 commit fe0ef9a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions library/std/src/sys/common/thread_local/fast_local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ pub macro thread_local_inner {
static __KEY: $crate::thread::local_impl::Key<$t> =
$crate::thread::local_impl::Key::<$t>::new();

// FIXME: remove the #[allow(...)] marker when macros don't
// raise warning for missing/extraneous unsafe blocks anymore.
// See https://github.com/rust-lang/rust/issues/74838.
#[allow(unused_unsafe)]
unsafe {
__KEY.get(move || {
if let $crate::option::Option::Some(init) = init {
Expand Down

0 comments on commit fe0ef9a

Please sign in to comment.