Fix fallout
This commit is contained in:
parent
df0c6d9385
commit
dbde7419cc
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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::*;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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") {
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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)]
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user