Skip to content

Commit c830142

Browse files
committed
Auto merge of #1477 - RalfJung:rustup, r=RalfJung
rustup; fix Windows TLS
2 parents 3e734ac + ce5ed69 commit c830142

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8ac1525e091d3db28e67adcbbd6db1e1deaa37fb
1+
567ad7455d5f25f6b38d2fded1cb621e0c34a48b

src/shims/tls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ trait EvalContextPrivExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
236236
// (that would be basically https://github.com/rust-lang/miri/issues/450),
237237
// we specifically look up the static in libstd that we know is placed
238238
// in that section.
239-
let thread_callback = this.eval_path_scalar(&["std", "sys", "windows", "thread_local", "p_thread_callback"])?;
239+
let thread_callback = this.eval_path_scalar(&["std", "sys", "windows", "thread_local_key", "p_thread_callback"])?;
240240
let thread_callback = this.memory.get_fn(thread_callback.not_undef()?)?.as_instance()?;
241241

242242
// The signature of this function is `unsafe extern "system" fn(h: c::LPVOID, dwReason: c::DWORD, pv: c::LPVOID)`.

0 commit comments

Comments
 (0)