From ca3bc644f4d0ac92561da98f8d710b7f0e8eb68a Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 19 Mar 2013 20:37:53 -0700 Subject: libcore: Make a couple of constructors public. rs=testfixing --- src/libcore/rt/sched.rs | 4 ++-- src/libcore/rt/thread.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libcore/rt') diff --git a/src/libcore/rt/sched.rs b/src/libcore/rt/sched.rs index 69cbbdd2ad4..60dbc8b82da 100644 --- a/src/libcore/rt/sched.rs +++ b/src/libcore/rt/sched.rs @@ -70,7 +70,7 @@ enum CleanupJob { pub impl Scheduler { - static fn new(event_loop: ~EventLoopObject) -> Scheduler { + static pub fn new(event_loop: ~EventLoopObject) -> Scheduler { Scheduler { event_loop: event_loop, task_queue: WorkQueue::new(), @@ -296,7 +296,7 @@ pub struct Task { } impl Task { - static fn new(stack_pool: &mut StackPool, start: ~fn()) -> Task { + static pub fn new(stack_pool: &mut StackPool, start: ~fn()) -> Task { // XXX: Putting main into a ~ so it's a thin pointer and can // be passed to the spawn function. Another unfortunate // allocation diff --git a/src/libcore/rt/thread.rs b/src/libcore/rt/thread.rs index be1d86c9cf7..5dccf90096e 100644 --- a/src/libcore/rt/thread.rs +++ b/src/libcore/rt/thread.rs @@ -20,7 +20,7 @@ struct Thread { } impl Thread { - static fn start(main: ~fn()) -> Thread { + static pub fn start(main: ~fn()) -> Thread { fn substart(main: &fn()) -> *raw_thread { unsafe { rust_raw_thread_start(&main) } } -- cgit 1.4.1-3-g733a5