about summary refs log tree commit diff
path: root/src/libcore/rt/stack.rs
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2013-05-16 21:53:54 -0400
committerCorey Richardson <corey@octayn.net>2013-05-16 21:53:54 -0400
commitc2baaa8d8432c8d7320e928e7ad706f225430bb3 (patch)
treef3a398ecd581bde5f7352b2e5336461a79cbe496 /src/libcore/rt/stack.rs
parent00eef96a007a817533e78860e97b251258177d5f (diff)
downloadrust-c2baaa8d8432c8d7320e928e7ad706f225430bb3.tar.gz
rust-c2baaa8d8432c8d7320e928e7ad706f225430bb3.zip
fix warnings
Diffstat (limited to 'src/libcore/rt/stack.rs')
-rw-r--r--src/libcore/rt/stack.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libcore/rt/stack.rs b/src/libcore/rt/stack.rs
index 3a4e9307d3b..061d7dab9a1 100644
--- a/src/libcore/rt/stack.rs
+++ b/src/libcore/rt/stack.rs
@@ -31,9 +31,7 @@ pub impl StackSegment {
 
     /// Point one word beyond the high end of the allocated stack
     fn end(&self) -> *uint {
-        unsafe {
-            vec::raw::to_ptr(self.buf).offset(self.buf.len()) as *uint
-        }
+        vec::raw::to_ptr(self.buf).offset(self.buf.len()) as *uint
     }
 }