We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0587715 commit 11191fcCopy full SHA for 11191fc
library/std/src/sys/thread_local/key/unix.rs
@@ -29,5 +29,10 @@ pub unsafe fn destroy(key: Key) {
29
30
#[inline]
31
pub unsafe fn at_process_exit(cb: unsafe extern "C" fn()) {
32
+ // Miri does not support atexit.
33
+ #[cfg(not(miri))]
34
assert_eq!(unsafe { libc::atexit(mem::transmute(cb)) }, 0);
35
+
36
+ #[cfg(miri)]
37
+ let _ = cb;
38
}
0 commit comments