From 164f7a290ef98377e4c8c158eca2fbed098a2842 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Sun, 15 Dec 2013 23:35:12 +1100 Subject: std::vec: convert to(_mut)_ptr to as_... methods on &[] and &mut []. --- src/libstd/rt/stack.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd/rt/stack.rs') 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 } } } -- cgit 1.4.1-3-g733a5