about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-03-18 17:20:45 -0700
committerPatrick Walton <pcwalton@mimiga.net>2013-03-19 13:40:48 -0700
commit2e7ec80bcce454d55d31c6bd335bb2ad64a7298e (patch)
tree02bbd5d40bbf7873fd32c87ea81f5e0012502a6c /src/libcore
parenta14ec73cd2d15a2454113011835557ccf447f14d (diff)
downloadrust-2e7ec80bcce454d55d31c6bd335bb2ad64a7298e.tar.gz
rust-2e7ec80bcce454d55d31c6bd335bb2ad64a7298e.zip
librustc: Enforce privacy for static methods.
This starts moving a bunch of privacy checks into the privacy
checking phase and out of resolve.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/rt/env.rs2
-rw-r--r--src/libcore/rt/stack.rs3
-rw-r--r--src/libcore/task/rt.rs2
3 files changed, 3 insertions, 4 deletions
diff --git a/src/libcore/rt/env.rs b/src/libcore/rt/env.rs
index 008e31777b0..92e2ec51306 100644
--- a/src/libcore/rt/env.rs
+++ b/src/libcore/rt/env.rs
@@ -44,4 +44,4 @@ pub fn get() -> &Environment {
 
 extern {
     fn rust_get_rt_env() -> &Environment;
-}
\ No newline at end of file
+}
diff --git a/src/libcore/rt/stack.rs b/src/libcore/rt/stack.rs
index 02c47218ed8..b5e7d4f3aa2 100644
--- a/src/libcore/rt/stack.rs
+++ b/src/libcore/rt/stack.rs
@@ -37,8 +37,7 @@ pub impl StackSegment {
 pub struct StackPool(());
 
 impl StackPool {
-
-    static fn new() -> StackPool { StackPool(()) }
+    static pub fn new() -> StackPool { StackPool(()) }
 
     fn take_segment(&self, min_size: uint) -> StackSegment {
         StackSegment::new(min_size)
diff --git a/src/libcore/task/rt.rs b/src/libcore/task/rt.rs
index e95c6d90eee..760812252bc 100644
--- a/src/libcore/task/rt.rs
+++ b/src/libcore/task/rt.rs
@@ -30,7 +30,7 @@ pub type rust_task = libc::c_void;
 #[allow(non_camel_case_types)] // runtime type
 pub type rust_closure = libc::c_void;
 
-extern {
+pub extern {
     #[rust_stack]
     fn rust_task_yield(task: *rust_task) -> bool;