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/rt.rs | |
| 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/rt.rs')
| -rw-r--r-- | src/libstd/rt.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt.rs b/src/libstd/rt.rs index 78d5aa597ba..6c791cd336d 100644 --- a/src/libstd/rt.rs +++ b/src/libstd/rt.rs @@ -34,7 +34,7 @@ fn lang_start(main: *const u8, argc: isize, argv: *const *const u8) -> isize { use panic; use sys; use sys_common; - use sys_common::thread_info::{self, NewThread}; + use sys_common::thread_info; use thread::Thread; sys::init(); @@ -47,7 +47,7 @@ fn lang_start(main: *const u8, argc: isize, argv: *const *const u8) -> isize { // created. Note that this isn't necessary in general for new threads, // but we just do this to name the main thread and to give it correct // info about the stack bounds. - let thread: Thread = NewThread::new(Some("main".to_owned())); + let thread = Thread::new(Some("main".to_owned())); thread_info::set(main_guard, thread); // Store our args if necessary in a squirreled away location |
