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 9f1235b commit 5bcc7cbCopy full SHA for 5bcc7cb
std/src/sys/pal/windows/thread_local_key.rs
@@ -276,6 +276,7 @@ unsafe fn register_dtor(key: &'static StaticKey) {
276
// the address of the symbol to ensure it sticks around.
277
278
#[link_section = ".CRT$XLB"]
279
+#[cfg_attr(miri, used)] // Miri only considers explicitly `#[used]` statics for `lookup_link_section`
280
pub static p_thread_callback: unsafe extern "system" fn(c::LPVOID, c::DWORD, c::LPVOID) =
281
on_tls_callback;
282
0 commit comments