Skip to content

Commit 5193d54

Browse files
committed
Fix the fallout of removing feature(import_shadowing).
1 parent d5267d5 commit 5193d54

File tree

20 files changed

+41
-65
lines changed

20 files changed

+41
-65
lines changed

src/libcollections/vec.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ use core::default::Default;
5454
use core::fmt;
5555
use core::hash::{mod, Hash};
5656
use core::kinds::marker::{ContravariantLifetime, InvariantType};
57-
use core::kinds::Sized;
5857
use core::mem;
5958
use core::num::{Int, UnsignedInt};
6059
use core::ops;

src/libcollections/vec_map.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use core::hash::{Hash, Writer};
2121
use core::iter;
2222
use core::iter::{Enumerate, FilterMap, Map};
2323
use core::mem::replace;
24-
use core::ops::FnOnce;
2524

2625
use {vec, slice};
2726
use vec::Vec;

src/librustc/middle/check_match.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use middle::expr_use_visitor as euv;
2222
use middle::mem_categorization::cmt;
2323
use middle::pat_util::*;
2424
use middle::ty::*;
25-
use middle::ty::{mod, Ty};
25+
use middle::ty;
2626
use std::fmt;
2727
use std::iter::AdditiveIterator;
2828
use std::iter::range_inclusive;

src/librustc_borrowck/borrowck/move_data.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
pub use self::MoveKind::*;
1515

1616
use borrowck::*;
17-
use borrowck::LoanPathKind::{LpVar, LpUpvar, LpDowncast, LpExtend};
18-
use borrowck::LoanPathElem::{LpInterior};
1917
use rustc::middle::cfg;
2018
use rustc::middle::dataflow::DataFlowContext;
2119
use rustc::middle::dataflow::BitwiseOperator;

src/librustc_trans/trans/callee.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ pub fn trans_fn_ref_with_substs<'blk, 'tcx>(
487487

488488
let opt_ref_id = match node {
489489
ExprId(id) => if id != 0 { Some(id) } else { None },
490-
MethodCall(_) => None,
490+
MethodCallKey(_) => None,
491491
};
492492

493493
let (val, must_cast) =
@@ -498,7 +498,7 @@ pub fn trans_fn_ref_with_substs<'blk, 'tcx>(
498498
// are subst'd)
499499
let ref_ty = match node {
500500
ExprId(id) => node_id_type(bcx, id),
501-
MethodCall(method_call) => {
501+
MethodCallKey(method_call) => {
502502
let t = (*bcx.tcx().method_map.borrow())[method_call].ty;
503503
monomorphize_type(bcx, t)
504504
}

src/librustc_trans/trans/common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ pub enum ExprOrMethodCall {
867867
ExprId(ast::NodeId),
868868

869869
// Type parameters for a method call like `a.foo::<int>()`
870-
MethodCall(ty::MethodCall)
870+
MethodCallKey(ty::MethodCall)
871871
}
872872

873873
pub fn node_id_substs<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
@@ -879,7 +879,7 @@ pub fn node_id_substs<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
879879
ExprId(id) => {
880880
ty::node_id_item_substs(tcx, id).substs
881881
}
882-
MethodCall(method_call) => {
882+
MethodCallKey(method_call) => {
883883
(*tcx.method_map.borrow())[method_call].substs.clone()
884884
}
885885
};

src/librustc_trans/trans/controlflow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use llvm::*;
11+
use llvm::ValueRef;
1212
use middle::def;
1313
use middle::lang_items::{PanicFnLangItem, PanicBoundsCheckFnLangItem};
1414
use trans::_match;

src/librustc_trans/trans/meth.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pub fn trans_method_callee<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
124124
bcx: bcx,
125125
data: Fn(callee::trans_fn_ref(bcx,
126126
did,
127-
MethodCall(method_call))),
127+
MethodCallKey(method_call))),
128128
}
129129
}
130130

@@ -344,12 +344,12 @@ fn trans_monomorphized_callee<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
344344
// those from the impl and those from the method:
345345
let callee_substs =
346346
combine_impl_and_methods_tps(
347-
bcx, MethodCall(method_call), vtable_impl.substs);
347+
bcx, MethodCallKey(method_call), vtable_impl.substs);
348348

349349
// translate the function
350350
let llfn = trans_fn_ref_with_substs(bcx,
351351
mth_id,
352-
MethodCall(method_call),
352+
MethodCallKey(method_call),
353353
callee_substs);
354354

355355
Callee { bcx: bcx, data: Fn(llfn) }
@@ -359,7 +359,7 @@ fn trans_monomorphized_callee<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
359359
// after passing through fulfill_obligation
360360
let llfn = trans_fn_ref_with_substs(bcx,
361361
closure_def_id,
362-
MethodCall(method_call),
362+
MethodCallKey(method_call),
363363
substs);
364364

365365
Callee {

src/libstd/dynamic_lib.rs

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,10 @@
1515
#![experimental]
1616
#![allow(missing_docs)]
1717

18-
use clone::Clone;
19-
use c_str::ToCStr;
20-
use iter::IteratorExt;
18+
use prelude::*;
2119
use mem;
22-
use ops::*;
23-
use option::*;
24-
use option::Option::{None, Some};
2520
use os;
26-
use path::{Path,GenericPath};
27-
use result::*;
28-
use result::Result::{Err, Ok};
29-
use slice::{AsSlice,SliceExt};
3021
use str;
31-
use string::String;
32-
use vec::Vec;
3322

3423
#[allow(missing_copy_implementations)]
3524
pub struct DynamicLibrary {
@@ -213,13 +202,10 @@ mod test {
213202
pub mod dl {
214203
pub use self::Rtld::*;
215204

216-
use c_str::{CString, ToCStr};
205+
use prelude::*;
206+
use c_str::CString;
217207
use libc;
218-
use ops::FnOnce;
219208
use ptr;
220-
use result::*;
221-
use result::Result::{Err, Ok};
222-
use string::String;
223209

224210
pub unsafe fn open_external<T: ToCStr>(filename: T) -> *mut u8 {
225211
filename.with_c_str(|raw_name| {

src/libstd/rt/util.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use core::str;
2020

2121
use libc::{mod, uintptr_t};
2222
use os;
23-
use str::{FromStr, from_str, Str};
2423
use sync::atomic;
2524

2625
/// Dynamically inquire about whether we're running under V.
@@ -66,7 +65,7 @@ pub fn min_stack() -> uint {
6665
pub fn default_sched_threads() -> uint {
6766
match os::getenv("RUST_THREADS") {
6867
Some(nstr) => {
69-
let opt_n: Option<uint> = FromStr::from_str(nstr.as_slice());
68+
let opt_n: Option<uint> = from_str(nstr.as_slice());
7069
match opt_n {
7170
Some(n) if n > 0 => n,
7271
_ => panic!("`RUST_THREADS` is `{}`, should be a positive integer", nstr)

0 commit comments

Comments
 (0)