Skip to content

Commit 8fcd7f9

Browse files
committed
CFI: Add missing use core::ffi::c_int
Adds missing use core::ffi::c_int for when sanitizer_cfi_normalize_integers is defined.
1 parent 07a4b7e commit 8fcd7f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/std/src/sys/unix/thread_local_dtor.rs

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
//! Provides thread-local destructors without an associated "key", which
55
//! can be more efficient.
66
7+
#[allow(unexpected_cfgs)]
8+
#[cfg(sanitizer_cfi_normalize_integers)]
9+
use core::ffi::c_int;
10+
711
// Since what appears to be glibc 2.18 this symbol has been shipped which
812
// GCC and clang both use to invoke destructors in thread_local globals, so
913
// let's do the same!

0 commit comments

Comments
 (0)