Skip to content

Commit 426d02d

Browse files
gimli: allow static mut ref for MAPPINGS_CACHE
1 parent 6c622d5 commit 426d02d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/symbolize/gimli.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,8 @@ impl Cache {
363363
// never happen, and symbolicating backtraces would be ssssllllooooowwww.
364364
static mut MAPPINGS_CACHE: Option<Cache> = None;
365365

366+
// SAFETY: this is literally why this fn is unsafe
367+
#[allow(static_mut_refs)]
366368
f(MAPPINGS_CACHE.get_or_insert_with(Cache::new))
367369
}
368370

0 commit comments

Comments
 (0)