about summary refs log tree commit diff
path: root/src/libstd/rt/stack.rs
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-12-15 23:35:12 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2013-12-15 23:37:41 +1100
commit164f7a290ef98377e4c8c158eca2fbed098a2842 (patch)
treed9b2239b59f5d18bb680429595192fc64fdad6eb /src/libstd/rt/stack.rs
parentf53292f7ee7365fe50ac216efac438ff5569fd06 (diff)
downloadrust-164f7a290ef98377e4c8c158eca2fbed098a2842.tar.gz
rust-164f7a290ef98377e4c8c158eca2fbed098a2842.zip
std::vec: convert to(_mut)_ptr to as_... methods on &[] and &mut [].
Diffstat (limited to 'src/libstd/rt/stack.rs')
-rw-r--r--src/libstd/rt/stack.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/stack.rs b/src/libstd/rt/stack.rs
index 4b3236b76bf..44b60e955d2 100644
--- a/src/libstd/rt/stack.rs
+++ b/src/libstd/rt/stack.rs
@@ -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
         }
     }
 }