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 */
use prelude::*;
use task;
use local_data::{local_data_pop, local_data_set};
// helper for transmutation, shown below.

View file

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

View file

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

View file

@ -21,7 +21,8 @@ use middle::dataflow::DataFlowOperator;
use util::common::stmt_set;
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::io;
use core::result::{Result};

View file

@ -28,7 +28,8 @@ use util::ppaux::Repr;
use util::common::{indenter};
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::to_bytes;
use core::hashmap::{HashMap, HashSet};

View file

@ -544,7 +544,8 @@ use middle::typeck::infer::cres;
use util::common::indenter;
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::hashmap::{HashMap, HashSet};
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))]
pub fn input(f: &fn(&str) -> bool) -> bool {
let mut i = FileInput::from_args();
let i = FileInput::from_args();
i.each_line(f)
}
@ -413,7 +413,7 @@ Fails when attempting to read from a file that can't be opened.
*/
#[cfg(not(stage0))]
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)
}
@ -433,7 +433,7 @@ Fails when attempting to read from a file that can't be opened.
*/
#[cfg(not(stage0))]
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)
}
@ -457,7 +457,7 @@ Fails when attempting to read from a file that can't be opened.
#[cfg(not(stage0))]
pub fn input_vec_state(files: ~[Option<Path>],
f: &fn(&str, FileInputState) -> bool) -> bool {
let mut i = FileInput::from_vec(files);
let i = FileInput::from_vec(files);
i.each_line_state(f)
}

View file

@ -412,7 +412,7 @@ fn run_tests(opts: &TestOpts,
callback: @fn(e: TestEvent)) {
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));

View file

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