about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-03-19 20:37:53 -0700
committerPatrick Walton <pcwalton@mimiga.net>2013-03-19 20:37:53 -0700
commitca3bc644f4d0ac92561da98f8d710b7f0e8eb68a (patch)
treeb9c7ffe4ff31be9be71dd52e94ddf34e35b9478b /src
parente6f53c091e8efeb2258f1f215226a8228acbd868 (diff)
downloadrust-ca3bc644f4d0ac92561da98f8d710b7f0e8eb68a.tar.gz
rust-ca3bc644f4d0ac92561da98f8d710b7f0e8eb68a.zip
libcore: Make a couple of constructors public. rs=testfixing
Diffstat (limited to 'src')
-rw-r--r--src/libcore/rt/sched.rs4
-rw-r--r--src/libcore/rt/thread.rs2
2 files changed, 3 insertions, 3 deletions
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) }
         }