about summary refs log tree commit diff
path: root/src/libstd/rt/stack.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-12-15 06:56:27 -0800
committerbors <bors@rust-lang.org>2013-12-15 06:56:27 -0800
commit8d52dfbace05c46754f4f6bb5a25f55906c9d7b0 (patch)
tree2fe29e4faba8034176fe5c1f14bd2659ca0c7235 /src/libstd/rt/stack.rs
parentef7969e86f0b53e4236ca627b31ac09413c07b82 (diff)
parent164f7a290ef98377e4c8c158eca2fbed098a2842 (diff)
downloadrust-8d52dfbace05c46754f4f6bb5a25f55906c9d7b0.tar.gz
rust-8d52dfbace05c46754f4f6bb5a25f55906c9d7b0.zip
auto merge of #10984 : huonw/rust/clean-raw, r=cmr
See commits for details.
Diffstat (limited to 'src/libstd/rt/stack.rs')
-rw-r--r--src/libstd/rt/stack.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/rt/stack.rs b/src/libstd/rt/stack.rs
index 4358390da9f..44b60e955d2 100644
--- a/src/libstd/rt/stack.rs
+++ b/src/libstd/rt/stack.rs
@@ -24,7 +24,7 @@ impl StackSegment {
         unsafe {
             // Crate a block of uninitialized values
             let mut stack = vec::with_capacity(size);
-            vec::raw::set_len(&mut stack, size);
+            stack.set_len(size);
 
             let mut stk = StackSegment {
                 buf: stack,
@@ -39,13 +39,13 @@ impl StackSegment {
 
     /// Point to the low end of the allocated stack
     pub fn start(&self) -> *uint {
-        vec::raw::to_ptr(self.buf) as *uint
+        self.buf.as_ptr() as *uint
     }
 
     /// Point one word beyond the high end of the allocated stack
     pub fn end(&self) -> *uint {
         unsafe {
-            vec::raw::to_ptr(self.buf).offset(self.buf.len() as int) as *uint
+            self.buf.as_ptr().offset(self.buf.len() as int) as *uint
         }
     }
 }