auto merge of #6546 : cmr/rust/warning, r=thestinger

This commit is contained in:
bors 2013-05-16 21:19:38 -07:00
commit 918bfa710c
3 changed files with 3 additions and 4 deletions

View File

@ -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
}
}

View File

@ -362,7 +362,7 @@ pub type Buf = uvll::uv_buf_t;
/// Borrow a slice to a Buf
pub fn slice_to_uv_buf(v: &[u8]) -> Buf {
let data = unsafe { vec::raw::to_ptr(v) };
let data = vec::raw::to_ptr(v);
unsafe { uvll::buf_init(data, v.len()) }
}

View File

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[cfg(stage0)]
use core;
#[deriving(Eq, IterBytes)]