From abd66457b5d0aad4cab0da76d83baa7f9baac1f9 Mon Sep 17 00:00:00 2001 From: joboet Date: Wed, 18 Oct 2023 16:45:01 +0200 Subject: [PATCH] std: update miri reference to `std` module --- src/tools/miri/src/shims/tls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/miri/src/shims/tls.rs b/src/tools/miri/src/shims/tls.rs index 62bd087e7e82d..e4aef8f99753a 100644 --- a/src/tools/miri/src/shims/tls.rs +++ b/src/tools/miri/src/shims/tls.rs @@ -298,7 +298,7 @@ trait EvalContextPrivExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> { return Ok(()); } let thread_callback = - this.eval_windows("thread_local_key", "p_thread_callback").to_pointer(this)?; + this.eval_windows("thread_local_guard", "p_thread_callback").to_pointer(this)?; let thread_callback = this.get_ptr_fn(thread_callback)?.as_instance()?; // FIXME: Technically, the reason should be `DLL_PROCESS_DETACH` when the main thread exits