From e3662b188041b50c732896ded3de823144ae6556 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 8 Aug 2013 22:22:52 -0700 Subject: Remove offset_inbounds for an unsafe offset function --- src/libstd/rt/stack.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libstd/rt/stack.rs') diff --git a/src/libstd/rt/stack.rs b/src/libstd/rt/stack.rs index 4b2a9b7a6cc..da70659acec 100644 --- a/src/libstd/rt/stack.rs +++ b/src/libstd/rt/stack.rs @@ -46,7 +46,9 @@ impl StackSegment { /// Point one word beyond the high end of the allocated stack pub fn end(&self) -> *uint { - vec::raw::to_ptr(self.buf).offset(self.buf.len() as int) as *uint + unsafe { + vec::raw::to_ptr(self.buf).offset(self.buf.len() as int) as *uint + } } } -- cgit 1.4.1-3-g733a5