diff options
| author | bors <bors@rust-lang.org> | 2013-06-01 09:37:39 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-06-01 09:37:39 -0700 |
| commit | 44af5064d0ac3d45223f1555b299f10fd4902f5c (patch) | |
| tree | 33a4db59bd936a73594ca144e809b6074d6ccef3 /src/libstd/rt/stack.rs | |
| parent | b8391ccea0b2e2718a4d4ef999e9f03583c7ddea (diff) | |
| parent | 5fb254695b4db9af3d8e33577fae28ae9f7006c5 (diff) | |
| download | rust-44af5064d0ac3d45223f1555b299f10fd4902f5c.tar.gz rust-44af5064d0ac3d45223f1555b299f10fd4902f5c.zip | |
auto merge of #6871 : pcwalton/rust/de-pub-impl, r=pcwalton
Diffstat (limited to 'src/libstd/rt/stack.rs')
| -rw-r--r-- | src/libstd/rt/stack.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/rt/stack.rs b/src/libstd/rt/stack.rs index ec56e65931c..fa4b8f30f4e 100644 --- a/src/libstd/rt/stack.rs +++ b/src/libstd/rt/stack.rs @@ -19,8 +19,8 @@ pub struct StackSegment { valgrind_id: c_uint } -pub impl StackSegment { - fn new(size: uint) -> StackSegment { +impl StackSegment { + pub fn new(size: uint) -> StackSegment { unsafe { // Crate a block of uninitialized values let mut stack = vec::with_capacity(size); @@ -38,12 +38,12 @@ pub impl StackSegment { } /// Point to the low end of the allocated stack - fn start(&self) -> *uint { - vec::raw::to_ptr(self.buf) as *uint + pub fn start(&self) -> *uint { + vec::raw::to_ptr(self.buf) as *uint } /// Point one word beyond the high end of the allocated stack - fn end(&self) -> *uint { + pub fn end(&self) -> *uint { vec::raw::to_ptr(self.buf).offset(self.buf.len()) as *uint } } |
