about summary refs log tree commit diff
path: root/src/libstd/sys/common
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2015-02-04 02:26:00 +0100
committerVojtech Kral <vojtech@kral.hk>2015-02-08 17:49:20 +0100
commitdca49e06b18c63185a60e73f4ccde77ed541c079 (patch)
tree971cb667997ccfc766911130ba49c6806243dfc1 /src/libstd/sys/common
parentbfdcd34e82fca5186f0565c28c5c9b6a9f9b6c76 (diff)
downloadrust-dca49e06b18c63185a60e73f4ccde77ed541c079.tar.gz
rust-dca49e06b18c63185a60e73f4ccde77ed541c079.zip
Move native thread name setting from thread_info to Thread, fixes #21911
Diffstat (limited to 'src/libstd/sys/common')
-rw-r--r--src/libstd/sys/common/thread_info.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libstd/sys/common/thread_info.rs b/src/libstd/sys/common/thread_info.rs
index ce67a584a0a..92b936e74f6 100644
--- a/src/libstd/sys/common/thread_info.rs
+++ b/src/libstd/sys/common/thread_info.rs
@@ -56,10 +56,6 @@ pub fn stack_guard() -> uint {
 
 pub fn set(stack_bounds: (uint, uint), stack_guard: uint, thread: Thread) {
     THREAD_INFO.with(|c| assert!(c.borrow().is_none()));
-    match thread.name() {
-        Some(name) => unsafe { ::sys::thread::set_name(name); },
-        None => {}
-    }
     THREAD_INFO.with(move |c| *c.borrow_mut() = Some(ThreadInfo{
         stack_bounds: stack_bounds,
         stack_guard: stack_guard,