From 2e7ec80bcce454d55d31c6bd335bb2ad64a7298e Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 18 Mar 2013 17:20:45 -0700 Subject: librustc: Enforce privacy for static methods. This starts moving a bunch of privacy checks into the privacy checking phase and out of resolve. --- src/libcore/rt/stack.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libcore/rt/stack.rs') 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) -- cgit 1.4.1-3-g733a5