mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
delete [allow(...)] from issue #74838
This commit is contained in:
parent
fc8a3e357a
commit
fe0ef9a689
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user