about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2013-05-19 20:00:39 -0700
committerSteve Klabnik <steve@steveklabnik.com>2013-05-19 20:00:39 -0700
commitdc57d15b69601e8d88e7ee71b578a1624e28f89e (patch)
tree8ef3c8fa8541af02a3788576a35c84e1dafb8b90
parent9f671698e6ac2666293298eb5234237a8033683f (diff)
downloadrust-dc57d15b69601e8d88e7ee71b578a1624e28f89e.tar.gz
rust-dc57d15b69601e8d88e7ee71b578a1624e28f89e.zip
Remove more warnings.
Mostly of the 'unused imports' kind.
-rw-r--r--src/libcore/rt/stack.rs4
-rw-r--r--src/libcore/rt/uv/mod.rs3
-rw-r--r--src/libcore/rt/uv/uvio.rs1
-rw-r--r--src/libcore/unstable/lang.rs1
4 files changed, 1 insertions, 8 deletions
diff --git a/src/libcore/rt/stack.rs b/src/libcore/rt/stack.rs
index cab9c3390b2..ec56e65931c 100644
--- a/src/libcore/rt/stack.rs
+++ b/src/libcore/rt/stack.rs
@@ -39,9 +39,7 @@ pub impl StackSegment {
 
     /// Point to the low end of the allocated stack
     fn start(&self) -> *uint {
-        unsafe {
-            vec::raw::to_ptr(self.buf) as *uint
-        }
+      vec::raw::to_ptr(self.buf) as *uint
     }
 
     /// Point one word beyond the high end of the allocated stack
diff --git a/src/libcore/rt/uv/mod.rs b/src/libcore/rt/uv/mod.rs
index ad593058303..522c4a39d58 100644
--- a/src/libcore/rt/uv/mod.rs
+++ b/src/libcore/rt/uv/mod.rs
@@ -44,9 +44,6 @@ use vec;
 use ptr;
 use cast;
 use str;
-use option::*;
-use str::raw::from_c_str;
-use to_str::ToStr;
 use libc::{c_void, c_int, size_t, malloc, free};
 use cast::transmute;
 use ptr::null;
diff --git a/src/libcore/rt/uv/uvio.rs b/src/libcore/rt/uv/uvio.rs
index 8666d43a100..8aa1860f352 100644
--- a/src/libcore/rt/uv/uvio.rs
+++ b/src/libcore/rt/uv/uvio.rs
@@ -11,7 +11,6 @@
 use option::*;
 use result::*;
 use ops::Drop;
-use old_iter::CopyableIter;
 use cell::{Cell, empty_cell};
 use cast::transmute;
 use clone::Clone;
diff --git a/src/libcore/unstable/lang.rs b/src/libcore/unstable/lang.rs
index 1249392484d..d59c8ba5a8e 100644
--- a/src/libcore/unstable/lang.rs
+++ b/src/libcore/unstable/lang.rs
@@ -16,7 +16,6 @@ use libc::{c_char, c_uchar, c_void, size_t, uintptr_t, c_int, STDERR_FILENO};
 use managed::raw::BoxRepr;
 use str;
 use sys;
-use cast::transmute;
 use rt::{context, OldTaskContext};
 use rt::local_services::borrow_local_services;
 use option::{Option, Some, None};