diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-11-14 14:38:41 -0800 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-11-20 17:19:24 -0800 |
| commit | 40c78ab037c70d61eb4f8c95c7a4fec8f098644b (patch) | |
| tree | 83d66a065a6c79f702c62d7abaf54145353a2dc4 /src/libstd/rt | |
| parent | a68ec98166bf638c6cbf4036f51036012695718d (diff) | |
| download | rust-40c78ab037c70d61eb4f8c95c7a4fec8f098644b.tar.gz rust-40c78ab037c70d61eb4f8c95c7a4fec8f098644b.zip | |
Fallout from libgreen and libnative removal
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/mod.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/rt/mod.rs b/src/libstd/rt/mod.rs index 322df17f4f1..b6e57186afe 100644 --- a/src/libstd/rt/mod.rs +++ b/src/libstd/rt/mod.rs @@ -58,7 +58,7 @@ Several modules in `core` are clients of `rt`: use failure; use rustrt; -use startup; +use os; // Reexport some of our utilities which are expected by other crates. pub use self::util::{default_sched_threads, min_stack, running_on_valgrind}; @@ -66,9 +66,9 @@ pub use self::util::{default_sched_threads, min_stack, running_on_valgrind}; // Reexport functionality from librustrt and other crates underneath the // standard library which work together to create the entire runtime. pub use alloc::heap; -pub use rustrt::{task, local, mutex, exclusive, stack, args, rtio, thread}; +pub use rustrt::{task, local, mutex, exclusive, stack, args, thread}; pub use rustrt::{Stdio, Stdout, Stderr, begin_unwind, begin_unwind_fmt}; -pub use rustrt::{bookkeeping, at_exit, unwind, DEFAULT_ERROR_CODE, Runtime}; +pub use rustrt::{at_exit, unwind, DEFAULT_ERROR_CODE}; // Simple backtrace functionality (to print on panic) pub mod backtrace; @@ -95,7 +95,7 @@ static OS_DEFAULT_STACK_ESTIMATE: uint = 2 * (1 << 20); #[cfg(not(test))] #[lang = "start"] fn lang_start(main: *const u8, argc: int, argv: *const *const u8) -> int { - use std::mem; + use mem; start(argc, argv, proc() { let main: extern "Rust" fn() = unsafe { mem::transmute(main) }; main(); @@ -147,8 +147,8 @@ pub fn start(argc: int, argv: *const *const u8, main: proc()) -> int { init(argc, argv); let mut exit_code = None; let mut main = Some(main); - let mut task = task::new((my_stack_bottom, my_stack_top), - rt::thread::main_guard_page()); + let mut task = Task::new(Some((my_stack_bottom, my_stack_top)), + Some(rt::thread::main_guard_page())); task.name = Some(str::Slice("<main>")); drop(task.run(|| { unsafe { |
