Fix fallout

This commit is contained in:
Nick Cameron 2014-11-28 16:02:33 +13:00
parent df0c6d9385
commit dbde7419cc
15 changed files with 18 additions and 27 deletions

View File

@ -14,7 +14,6 @@ pub use self::MaybeOwnedVector::*;
use std::default::Default;
use std::fmt;
use std::iter::FromIterator;
use std::path::BytesContainer;
use std::slice;

View File

@ -19,8 +19,6 @@
use self::UseError::*;
use borrowck::*;
use borrowck::LoanPathElem::*;
use borrowck::LoanPathKind::*;
use rustc::middle::expr_use_visitor as euv;
use rustc::middle::mem_categorization as mc;
use rustc::middle::region;

View File

@ -11,7 +11,6 @@
//! Computes moves.
use borrowck::*;
use borrowck::LoanPathKind::*;
use borrowck::gather_loans::move_error::MoveSpanAndPath;
use borrowck::gather_loans::move_error::{MoveError, MoveErrorCollector};
use borrowck::move_data::*;

View File

@ -17,7 +17,6 @@
// sure that all of these loans are honored.
use borrowck::*;
use borrowck::LoanPathKind::*;
use borrowck::move_data::MoveData;
use rustc::middle::expr_use_visitor as euv;
use rustc::middle::mem_categorization as mc;

View File

@ -13,8 +13,6 @@
pub use self::RestrictionResult::*;
use borrowck::*;
use borrowck::LoanPathElem::*;
use borrowck::LoanPathKind::*;
use rustc::middle::expr_use_visitor as euv;
use rustc::middle::mem_categorization as mc;
use rustc::middle::ty;

View File

@ -342,9 +342,10 @@ pub fn phase_3_run_analysis_passes<'tcx>(sess: Session,
let lang_items = time(time_passes, "language item collection", (), |_|
middle::lang_items::collect_language_items(krate, &sess));
let make_glob_map = match save_analysis(&sess) {
true => middle::resolve::MakeGlobMap::Yes,
false => middle::resolve::MakeGlobMap::No,
let make_glob_map = if save_analysis(&sess) {
middle::resolve::MakeGlobMap::Yes
} else {
middle::resolve::MakeGlobMap::No
};
def_map,
freevars,

View File

@ -346,7 +346,7 @@ impl Rib {
}
/// Whether an import can be shadowed by another import.
#[deriving(Show,PartialEq,Clone)]
#[deriving(Show,PartialEq,Clone,Copy)]
enum Shadowable {
Always,
/// Means that the recorded import obeys the glob shadowing rules, i.e., can
@ -6113,7 +6113,7 @@ pub struct CrateMap {
pub glob_map: Option<GlobMap>
}
#[deriving(PartialEq)]
#[deriving(PartialEq,Copy)]
pub enum MakeGlobMap {
Yes,
No

View File

@ -630,8 +630,8 @@ static ASCII_UPPER_MAP: [u8, ..256] = [
#[cfg(test)]
mod tests {
use prelude::*;
use super::*;
use prelude::*;
use char::from_u32;
macro_rules! v2ascii {

View File

@ -333,12 +333,10 @@ macro_rules! test {
mod $name {
#![allow(unused_imports)]
use prelude::*;
use rt;
use comm::*;
use super::*;
use comm::*;
use thread::Thread;
use prelude::*;
$(#[$a])* #[test] fn f() { $b }
}
@ -1022,10 +1020,9 @@ impl<T: Send> Drop for Receiver<T> {
#[cfg(test)]
mod test {
use prelude::*;
use os;
use super::*;
use prelude::*;
use os;
pub fn stress_factor() -> uint {
match os::getenv("RUST_TEST_STRESS") {

View File

@ -399,9 +399,9 @@ impl<'a> Buffer for BufReader<'a> {
#[cfg(test)]
mod test {
extern crate "test" as test_crate;
use prelude::*;
use super::*;
use io::*;
use prelude::*;
use io;
use self::test_crate::Bencher;

View File

@ -266,10 +266,10 @@ impl sys_common::AsInner<UnixAcceptorImp> for UnixAcceptor {
#[cfg(test)]
#[allow(experimental)]
mod tests {
use prelude::*;
use super::*;
use io::*;
use io::test::*;
use prelude::*;
use io::fs::PathExtensions;
use time::Duration;

View File

@ -249,10 +249,10 @@ impl Writer for UdpStream {
#[allow(experimental)]
mod test {
use super::*;
use prelude::*;
use io::*;
use io::net::ip::*;
use io::*;
use io::test::*;
use prelude::*;
// FIXME #11530 this fails on android because tests are run as root
#[cfg_attr(any(windows, target_os = "android"), ignore)]

View File

@ -744,9 +744,9 @@ mod tests {
#![allow(unused_imports)]
use super::*;
use prelude::*;
use io::timer::*;
use io::*;
use prelude::*;
use io::fs::PathExtensions;
use time::Duration;
use str;

View File

@ -447,8 +447,8 @@ static dot_dot_static: &'static [u8] = b"..";
#[cfg(test)]
mod tests {
use prelude::*;
use super::*;
use prelude::*;
use str;
macro_rules! t {

View File

@ -1121,7 +1121,7 @@ fn prefix_len(p: Option<PathPrefix>) -> uint {
#[cfg(test)]
mod tests {
use prelude::*;
use mem;
use super::*;
use super::PathPrefix::*;
use super::parse_prefix;