We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe19861 commit 8a0c633Copy full SHA for 8a0c633
library/std/src/thread/local.rs
@@ -208,14 +208,12 @@ macro_rules! __thread_local_inner {
208
// If a dtor isn't needed we can do something "very raw" and
209
// just get going.
210
if !$crate::mem::needs_drop::<$t>() {
211
+ // FIXME: remove the #[allow(...)] marker when macros don't
212
+ // raise warning for missing/extraneous unsafe blocks anymore.
213
+ // See https://github.com/rust-lang/rust/issues/74838.
214
+ #[allow(unused_unsafe)]
215
unsafe {
- // 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)]
216
- unsafe {
217
- return Some(&VAL);
218
- }
+ return Some(&VAL);
219
}
220
221
0 commit comments