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/thread | |
| 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/thread')
| -rw-r--r-- | src/libstd/thread/mod.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs index 2bc066d3fea..fa4cc276ee5 100644 --- a/src/libstd/thread/mod.rs +++ b/src/libstd/thread/mod.rs @@ -745,7 +745,7 @@ pub struct Thread { impl Thread { // Used only internally to construct a thread object without spawning - fn new(name: Option<String>) -> Thread { + pub(crate) fn new(name: Option<String>) -> Thread { let cname = name.map(|n| { CString::new(n).expect("thread name may not contain interior null bytes") }); @@ -858,11 +858,6 @@ impl fmt::Debug for Thread { } } -// a hack to get around privacy restrictions -impl thread_info::NewThread for Thread { - fn new(name: Option<String>) -> Thread { Thread::new(name) } -} - //////////////////////////////////////////////////////////////////////////////// // JoinHandle //////////////////////////////////////////////////////////////////////////////// |
