about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorJakub Wieczorek <jakub@jakub.cc>2014-06-06 15:51:42 +0200
committerJakub Wieczorek <jakub@jakub.cc>2014-06-08 13:36:28 +0200
commitf7d86b2f4ace416a65e84603082c756b8b5dc43e (patch)
tree9c47bd9132d7f323bde048e1fe1998c2d5a01692 /src/libstd
parent0271224bdae26260ab498f47323997f9edb5879e (diff)
downloadrust-f7d86b2f4ace416a65e84603082c756b8b5dc43e.tar.gz
rust-f7d86b2f4ace416a65e84603082c756b8b5dc43e.zip
Remove the dead code identified by the new lint
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/collections/hashmap.rs5
-rw-r--r--src/libstd/rt/backtrace.rs1
-rw-r--r--src/libstd/task.rs4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/collections/hashmap.rs b/src/libstd/collections/hashmap.rs
index 571c5794704..99544f2ff3b 100644
--- a/src/libstd/collections/hashmap.rs
+++ b/src/libstd/collections/hashmap.rs
@@ -393,7 +393,7 @@ mod table {
         }
 
         pub fn move_iter(self) -> MoveEntries<K, V> {
-            MoveEntries { table: self, idx: 0, elems_seen: 0 }
+            MoveEntries { table: self, idx: 0 }
         }
     }
 
@@ -428,8 +428,7 @@ mod table {
     /// Iterator over the entries in a table, consuming the table.
     pub struct MoveEntries<K, V> {
         table: RawTable<K, V>,
-        idx: uint,
-        elems_seen: uint,
+        idx: uint
     }
 
     impl<'a, K, V> Iterator<(&'a K, &'a V)> for Entries<'a, K, V> {
diff --git a/src/libstd/rt/backtrace.rs b/src/libstd/rt/backtrace.rs
index 766901fa04f..f1717c3a2ba 100644
--- a/src/libstd/rt/backtrace.rs
+++ b/src/libstd/rt/backtrace.rs
@@ -325,6 +325,7 @@ mod imp {
     #[cfg(target_os = "macos")]
     fn print(w: &mut Writer, idx: int, addr: *libc::c_void) -> IoResult<()> {
         use intrinsics;
+        #[repr(C)]
         struct Dl_info {
             dli_fname: *libc::c_char,
             dli_fbase: *libc::c_void,
diff --git a/src/libstd/task.rs b/src/libstd/task.rs
index 9ee62ee3d81..a4e1ad84252 100644
--- a/src/libstd/task.rs
+++ b/src/libstd/task.rs
@@ -84,7 +84,7 @@ pub struct TaskBuilder {
     /// Options to spawn the new task with
     pub opts: TaskOpts,
     gen_body: Option<proc(v: proc():Send):Send -> proc():Send>,
-    nocopy: Option<marker::NoCopy>,
+    nocopy: marker::NoCopy,
 }
 
 impl TaskBuilder {
@@ -94,7 +94,7 @@ impl TaskBuilder {
         TaskBuilder {
             opts: TaskOpts::new(),
             gen_body: None,
-            nocopy: None,
+            nocopy: marker::NoCopy,
         }
     }