1
Fork 0

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::default::Default;
use std::fmt; use std::fmt;
use std::iter::FromIterator;
use std::path::BytesContainer; use std::path::BytesContainer;
use std::slice; use std::slice;

View file

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

View file

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

View file

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

View file

@ -13,8 +13,6 @@
pub use self::RestrictionResult::*; pub use self::RestrictionResult::*;
use borrowck::*; use borrowck::*;
use borrowck::LoanPathElem::*;
use borrowck::LoanPathKind::*;
use rustc::middle::expr_use_visitor as euv; use rustc::middle::expr_use_visitor as euv;
use rustc::middle::mem_categorization as mc; use rustc::middle::mem_categorization as mc;
use rustc::middle::ty; 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", (), |_| let lang_items = time(time_passes, "language item collection", (), |_|
middle::lang_items::collect_language_items(krate, &sess)); middle::lang_items::collect_language_items(krate, &sess));
let make_glob_map = match save_analysis(&sess) { let make_glob_map = if save_analysis(&sess) {
true => middle::resolve::MakeGlobMap::Yes, middle::resolve::MakeGlobMap::Yes
false => middle::resolve::MakeGlobMap::No, } else {
middle::resolve::MakeGlobMap::No
}; };
def_map, def_map,
freevars, freevars,

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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