diff options
| author | bors <bors@rust-lang.org> | 2013-05-31 00:43:45 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-05-31 00:43:45 -0700 |
| commit | 1dd5cd9731e7c32180f9cc7ce1bcf675b5724c50 (patch) | |
| tree | 233e65e6296458aab1bbc43f00f0558afdca1a5f /src/libstd/task/spawn.rs | |
| parent | 6fcb483609dec71ec6fd13aaf9bea9080990043a (diff) | |
| parent | aef1e10eba812b8144b0a4ac8d9b6e690c6e5ca7 (diff) | |
| download | rust-1dd5cd9731e7c32180f9cc7ce1bcf675b5724c50.tar.gz rust-1dd5cd9731e7c32180f9cc7ce1bcf675b5724c50.zip | |
auto merge of #6833 : fdr/rust/fix-warnings, r=Aatch
Fix a laundry list of warnings involving unused imports that glutted up compilation output. There are more, but there seems to be some false positives (where 'remedy' appears to break the build), but this particular set of fixes seems safe.
Diffstat (limited to 'src/libstd/task/spawn.rs')
| -rw-r--r-- | src/libstd/task/spawn.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/task/spawn.rs b/src/libstd/task/spawn.rs index 0b345b88d62..35cf6de3a15 100644 --- a/src/libstd/task/spawn.rs +++ b/src/libstd/task/spawn.rs @@ -1,4 +1,4 @@ -// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -79,7 +79,6 @@ use cast; use cell::Cell; use container::Map; use comm::{Chan, GenericChan}; -use comm; use ptr; use hashmap::HashSet; use task::local_data_priv::{local_get, local_set, OldHandle}; @@ -89,13 +88,14 @@ use task::{Failure, ManualThreads, PlatformThread, SchedOpts, SingleThreaded}; use task::{Success, TaskOpts, TaskResult, ThreadPerCore, ThreadPerTask}; use task::{ExistingScheduler, SchedulerHandle}; use task::unkillable; -use task; use uint; use util; use unstable::sync::{Exclusive, exclusive}; use rt::local::Local; #[cfg(test)] use task::default_task_opts; +#[cfg(test)] use comm; +#[cfg(test)] use task; macro_rules! move_it ( { $x:expr } => ( unsafe { let y = *ptr::to_unsafe_ptr(&($x)); y } ) |
