Skip to content

Commit dc57d15

Browse files
committed
Remove more warnings.
Mostly of the 'unused imports' kind.
1 parent 9f67169 commit dc57d15

File tree

4 files changed

+1
-8
lines changed

4 files changed

+1
-8
lines changed

src/libcore/rt/stack.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ pub impl StackSegment {
3939

4040
/// Point to the low end of the allocated stack
4141
fn start(&self) -> *uint {
42-
unsafe {
43-
vec::raw::to_ptr(self.buf) as *uint
44-
}
42+
vec::raw::to_ptr(self.buf) as *uint
4543
}
4644

4745
/// Point one word beyond the high end of the allocated stack

src/libcore/rt/uv/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ use vec;
4444
use ptr;
4545
use cast;
4646
use str;
47-
use option::*;
48-
use str::raw::from_c_str;
49-
use to_str::ToStr;
5047
use libc::{c_void, c_int, size_t, malloc, free};
5148
use cast::transmute;
5249
use ptr::null;

src/libcore/rt/uv/uvio.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use option::*;
1212
use result::*;
1313
use ops::Drop;
14-
use old_iter::CopyableIter;
1514
use cell::{Cell, empty_cell};
1615
use cast::transmute;
1716
use clone::Clone;

src/libcore/unstable/lang.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ use libc::{c_char, c_uchar, c_void, size_t, uintptr_t, c_int, STDERR_FILENO};
1616
use managed::raw::BoxRepr;
1717
use str;
1818
use sys;
19-
use cast::transmute;
2019
use rt::{context, OldTaskContext};
2120
use rt::local_services::borrow_local_services;
2221
use option::{Option, Some, None};

0 commit comments

Comments
 (0)