Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/libcore/rt/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/libcore/rt/uv/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()) }
}

Expand Down
1 change: 1 addition & 0 deletions src/librustc/util/enum_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down