Skip to content

Commit

Permalink
Fix fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
nrc committed Dec 26, 2014
1 parent df0c6d9 commit dbde741
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 26 deletions.
1 change: 0 additions & 1 deletion src/libgraphviz/maybe_owned_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions src/librustc_borrowck/borrowck/check_loans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand Down
1 change: 0 additions & 1 deletion src/librustc_borrowck/borrowck/gather_loans/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions src/librustc_borrowck/borrowck/gather_loans/restrictions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 4 additions & 3 deletions src/librustc_driver/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/librustc_resolve/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -6113,7 +6113,7 @@ pub struct CrateMap {
pub glob_map: Option<GlobMap>
}

#[deriving(PartialEq)]
#[deriving(PartialEq,Copy)]
pub enum MakeGlobMap {
Yes,
No
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/ascii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
9 changes: 3 additions & 6 deletions src/libstd/comm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
Expand Down Expand Up @@ -1022,10 +1020,9 @@ impl<T: Send> Drop for Receiver<T> {

#[cfg(test)]
mod test {
use super::*;
use prelude::*;

use os;
use super::*;

pub fn stress_factor() -> uint {
match os::getenv("RUST_TEST_STRESS") {
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/io/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/libstd/io/net/pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions src/libstd/io/net/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/io/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/path/posix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/path/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dbde741

Please sign in to comment.