about summary refs log tree commit diff
path: root/src/libcore/rt
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/rt
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/rt')
-rw-r--r--src/libcore/rt/env.rs2
-rw-r--r--src/libcore/rt/stack.rs3
2 files changed, 2 insertions, 3 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)