Auto merge of #2005 - RalfJung:rustup, r=RalfJung

rustup
This commit is contained in:
bors 2022-03-07 14:40:07 +00:00
commit dd42a47f0a
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
c274e4969f058b1c644243181ece9f829efa7594
8876ca3dd46b99fe7e6ad937f11493d37996231e

View File

@ -574,7 +574,7 @@ fn get_or_create_thread_local_alloc(
let allocation = tcx.eval_static_initializer(def_id)?;
// Create a fresh allocation with this content.
let new_alloc =
this.memory.allocate_with(allocation.clone(), MiriMemoryKind::Tls.into());
this.memory.allocate_with(allocation.inner().clone(), MiriMemoryKind::Tls.into());
this.machine.threads.set_thread_local_alloc(def_id, new_alloc);
Ok(new_alloc)
}