File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -208,14 +208,12 @@ macro_rules! __thread_local_inner {
208
208
// If a dtor isn't needed we can do something "very raw" and
209
209
// just get going.
210
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) ]
211
215
unsafe {
212
- // FIXME: remove the #[allow(...)] marker when macros don't
213
- // raise warning for missing/extraneous unsafe blocks anymore.
214
- // See https://github.com/rust-lang/rust/issues/74838.
215
- #[ allow( unused_unsafe) ]
216
- unsafe {
217
- return Some ( & VAL ) ;
218
- }
216
+ return Some ( & VAL ) ;
219
217
}
220
218
}
221
219
You can’t perform that action at this time.
0 commit comments