clean up the last bit of warnings

This commit is contained in:
Corey Richardson
2013-05-11 06:07:21 -04:00
committed by Tim Chevalier
parent ed41864464
commit a279d65102
9 changed files with 11 additions and 12 deletions

View File

@@ -11,7 +11,6 @@
/*! Condition handling */ /*! Condition handling */
use prelude::*; use prelude::*;
use task;
use local_data::{local_data_pop, local_data_set}; use local_data::{local_data_pop, local_data_set};
// helper for transmutation, shown below. // helper for transmutation, shown below.

View File

@@ -36,7 +36,6 @@ use option::{Some, None};
use prelude::*; use prelude::*;
use ptr; use ptr;
use str; use str;
use task;
use uint; use uint;
use unstable::finally::Finally; use unstable::finally::Finally;
use vec; use vec;

View File

@@ -43,7 +43,6 @@ fn main () {
use int; use int;
use prelude::*; use prelude::*;
use str; use str;
use task;
use u32; use u32;
use uint; use uint;
use util; use util;

View File

@@ -21,7 +21,8 @@ use middle::dataflow::DataFlowOperator;
use util::common::stmt_set; use util::common::stmt_set;
use util::ppaux::{note_and_explain_region, Repr}; use util::ppaux::{note_and_explain_region, Repr};
use core; #[cfg(stage0)]
use core; // NOTE: this can be removed after the next snapshot
use core::hashmap::{HashSet, HashMap}; use core::hashmap::{HashSet, HashMap};
use core::io; use core::io;
use core::result::{Result}; use core::result::{Result};

View File

@@ -28,7 +28,8 @@ use util::ppaux::Repr;
use util::common::{indenter}; use util::common::{indenter};
use util::enum_set::{EnumSet, CLike}; use util::enum_set::{EnumSet, CLike};
use core; #[cfg(stage0)]
use core; // NOTE: this can be removed after the next snapshot
use core::ptr::to_unsafe_ptr; use core::ptr::to_unsafe_ptr;
use core::to_bytes; use core::to_bytes;
use core::hashmap::{HashMap, HashSet}; use core::hashmap::{HashMap, HashSet};

View File

@@ -544,7 +544,8 @@ use middle::typeck::infer::cres;
use util::common::indenter; use util::common::indenter;
use util::ppaux::note_and_explain_region; use util::ppaux::note_and_explain_region;
use core; #[cfg(stage0)]
use core; // NOTE: this can be removed after next snapshot
use core::cell::{Cell, empty_cell}; use core::cell::{Cell, empty_cell};
use core::hashmap::{HashMap, HashSet}; use core::hashmap::{HashMap, HashSet};
use core::to_bytes; use core::to_bytes;

View File

@@ -389,7 +389,7 @@ Fails when attempting to read from a file that can't be opened.
*/ */
#[cfg(not(stage0))] #[cfg(not(stage0))]
pub fn input(f: &fn(&str) -> bool) -> bool { pub fn input(f: &fn(&str) -> bool) -> bool {
let mut i = FileInput::from_args(); let i = FileInput::from_args();
i.each_line(f) i.each_line(f)
} }
@@ -413,7 +413,7 @@ Fails when attempting to read from a file that can't be opened.
*/ */
#[cfg(not(stage0))] #[cfg(not(stage0))]
pub fn input_state(f: &fn(&str, FileInputState) -> bool) -> bool { pub fn input_state(f: &fn(&str, FileInputState) -> bool) -> bool {
let mut i = FileInput::from_args(); let i = FileInput::from_args();
i.each_line_state(f) i.each_line_state(f)
} }
@@ -433,7 +433,7 @@ Fails when attempting to read from a file that can't be opened.
*/ */
#[cfg(not(stage0))] #[cfg(not(stage0))]
pub fn input_vec(files: ~[Option<Path>], f: &fn(&str) -> bool) -> bool { pub fn input_vec(files: ~[Option<Path>], f: &fn(&str) -> bool) -> bool {
let mut i = FileInput::from_vec(files); let i = FileInput::from_vec(files);
i.each_line(f) i.each_line(f)
} }
@@ -457,7 +457,7 @@ Fails when attempting to read from a file that can't be opened.
#[cfg(not(stage0))] #[cfg(not(stage0))]
pub fn input_vec_state(files: ~[Option<Path>], pub fn input_vec_state(files: ~[Option<Path>],
f: &fn(&str, FileInputState) -> bool) -> bool { f: &fn(&str, FileInputState) -> bool) -> bool {
let mut i = FileInput::from_vec(files); let i = FileInput::from_vec(files);
i.each_line_state(f) i.each_line_state(f)
} }

View File

@@ -412,7 +412,7 @@ fn run_tests(opts: &TestOpts,
callback: @fn(e: TestEvent)) { callback: @fn(e: TestEvent)) {
let filtered_tests = filter_tests(opts, tests); let filtered_tests = filter_tests(opts, tests);
let filtered_descs = filtered_tests.map(|t| t.desc); let filtered_descs = filtered_tests.map(|t| copy t.desc);
callback(TeFiltered(filtered_descs)); callback(TeFiltered(filtered_descs));

View File

@@ -16,7 +16,6 @@ use opt_vec::OptVec;
use core::cast; use core::cast;
use core::option::{None, Option, Some}; use core::option::{None, Option, Some};
use core::task;
use core::to_bytes; use core::to_bytes;
use core::to_str::ToStr; use core::to_str::ToStr;
use std::serialize::{Encodable, Decodable, Encoder, Decoder}; use std::serialize::{Encodable, Decodable, Encoder, Decoder};