diff options
| author | Sean Gillespie <sean@swgillespie.me> | 2017-03-13 18:42:23 -0700 |
|---|---|---|
| committer | Sean Gillespie <sean@swgillespie.me> | 2017-03-13 18:42:23 -0700 |
| commit | 1545f4e2a323eb869b13f36bd05cc91ff21d5161 (patch) | |
| tree | bbe9c733cd10f59efea9df1e918d08b21cafad98 /src/libstd/sys_common | |
| parent | fd182c4010b5aee72d070b15e90c98cb0fdc3776 (diff) | |
| download | rust-1545f4e2a323eb869b13f36bd05cc91ff21d5161.tar.gz rust-1545f4e2a323eb869b13f36bd05cc91ff21d5161.zip | |
std: remove a workaround for privacy limitations that isn't necessary anymore
Diffstat (limited to 'src/libstd/sys_common')
| -rw-r--r-- | src/libstd/sys_common/thread_info.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libstd/sys_common/thread_info.rs b/src/libstd/sys_common/thread_info.rs index 95d8b6cc951..5ed48ee4558 100644 --- a/src/libstd/sys_common/thread_info.rs +++ b/src/libstd/sys_common/thread_info.rs @@ -31,7 +31,7 @@ impl ThreadInfo { if c.borrow().is_none() { *c.borrow_mut() = Some(ThreadInfo { stack_guard: None, - thread: NewThread::new(None), + thread: Thread::new(None), }) } Some(f(c.borrow_mut().as_mut().unwrap())) @@ -54,8 +54,3 @@ pub fn set(stack_guard: Option<usize>, thread: Thread) { thread: thread, })); } - -// a hack to get around privacy restrictions; implemented by `std::thread` -pub trait NewThread { - fn new(name: Option<String>) -> Self; -} |
