about summary refs log tree commit diff
path: root/library/std/src/thread/mod.rs
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2025-07-26 14:29:00 +0200
committerjoboet <jonasboettiger@icloud.com>2025-07-28 18:09:35 +0200
commit73751a04910d08052bf6b825f8829cacba86c648 (patch)
tree17e949e6a7870b7d7212b5948d4e8fe870439896 /library/std/src/thread/mod.rs
parent051d0e8a957c98f87ddaf6295c3a3ecd88742ff9 (diff)
downloadrust-73751a04910d08052bf6b825f8829cacba86c648.tar.gz
rust-73751a04910d08052bf6b825f8829cacba86c648.zip
thread name in stack overflow message
Diffstat (limited to 'library/std/src/thread/mod.rs')
-rw-r--r--library/std/src/thread/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs
index 6075173db47..62ecacccd2e 100644
--- a/library/std/src/thread/mod.rs
+++ b/library/std/src/thread/mod.rs
@@ -595,7 +595,7 @@ impl Builder {
             // Similarly, the `sys` implementation must guarantee that no references to the closure
             // exist after the thread has terminated, which is signaled by `Thread::join`
             // returning.
-            native: unsafe { imp::Thread::new(stack_size, main)? },
+            native: unsafe { imp::Thread::new(stack_size, my_thread.name(), main)? },
             thread: my_thread,
             packet: my_packet,
         })