]> git.lizzy.rs Git - rust.git/blobdiff - src/thread.rs
Typo
[rust.git] / src / thread.rs
index 9eabbd77419fb82d33dfab10a76fb6aa5d39e807..2135806de3ed56853f233519f3ebcf28c00b3ffb 100644 (file)
@@ -587,7 +587,7 @@ fn get_or_create_thread_local_alloc(
             // This allocation will be deallocated when the thread dies, so it is not in read-only memory.
             allocation.mutability = Mutability::Mut;
             // Create a fresh allocation with this content.
-            let new_alloc = this.allocate_raw_ptr(allocation, MiriMemoryKind::Tls.into());
+            let new_alloc = this.allocate_raw_ptr(allocation, MiriMemoryKind::Tls.into())?;
             this.machine.threads.set_thread_local_alloc(def_id, new_alloc);
             Ok(new_alloc)
         }