sed -i -s 's/\bmod,/self,/g' **/*.rs
This commit is contained in:
parent
c6c786671d
commit
56dcbd17fd
178 changed files with 291 additions and 291 deletions
|
@ -26,7 +26,7 @@ use std::io::File;
|
|||
|
||||
use syntax::parse;
|
||||
use syntax::parse::lexer;
|
||||
use rustc::session::{mod, config};
|
||||
use rustc::session::{self, config};
|
||||
|
||||
use syntax::ast;
|
||||
use syntax::ast::Name;
|
||||
|
|
|
@ -71,7 +71,7 @@ use core::atomic;
|
|||
use core::atomic::Ordering::{Relaxed, Release, Acquire, SeqCst};
|
||||
use core::borrow::BorrowFrom;
|
||||
use core::clone::Clone;
|
||||
use core::fmt::{mod, Show};
|
||||
use core::fmt::{self, Show};
|
||||
use core::cmp::{Eq, Ord, PartialEq, PartialOrd, Ordering};
|
||||
use core::default::Default;
|
||||
use core::kinds::{Sync, Send};
|
||||
|
@ -81,7 +81,7 @@ use core::nonzero::NonZero;
|
|||
use core::ops::{Drop, Deref};
|
||||
use core::option::Option;
|
||||
use core::option::Option::{Some, None};
|
||||
use core::ptr::{mod, PtrExt};
|
||||
use core::ptr::{self, PtrExt};
|
||||
use heap::deallocate;
|
||||
|
||||
/// An atomically reference counted wrapper for shared state.
|
||||
|
|
|
@ -17,7 +17,7 @@ use core::clone::Clone;
|
|||
use core::cmp::{PartialEq, PartialOrd, Eq, Ord, Ordering};
|
||||
use core::default::Default;
|
||||
use core::fmt;
|
||||
use core::hash::{mod, Hash};
|
||||
use core::hash::{self, Hash};
|
||||
use core::kinds::Sized;
|
||||
use core::mem;
|
||||
use core::option::Option;
|
||||
|
|
|
@ -147,14 +147,14 @@ use core::clone::Clone;
|
|||
use core::cmp::{PartialEq, PartialOrd, Eq, Ord, Ordering};
|
||||
use core::default::Default;
|
||||
use core::fmt;
|
||||
use core::hash::{mod, Hash};
|
||||
use core::hash::{self, Hash};
|
||||
use core::kinds::marker;
|
||||
use core::mem::{transmute, min_align_of, size_of, forget};
|
||||
use core::nonzero::NonZero;
|
||||
use core::ops::{Deref, Drop};
|
||||
use core::option::Option;
|
||||
use core::option::Option::{Some, None};
|
||||
use core::ptr::{mod, PtrExt};
|
||||
use core::ptr::{self, PtrExt};
|
||||
use core::result::Result;
|
||||
use core::result::Result::{Ok, Err};
|
||||
|
||||
|
@ -264,7 +264,7 @@ pub fn is_unique<T>(rc: &Rc<T>) -> bool {
|
|||
/// # Example
|
||||
///
|
||||
/// ```
|
||||
/// use std::rc::{mod, Rc};
|
||||
/// use std::rc::{self, Rc};
|
||||
///
|
||||
/// let x = Rc::new(3u);
|
||||
/// assert_eq!(rc::try_unwrap(x), Ok(3u));
|
||||
|
@ -298,7 +298,7 @@ pub fn try_unwrap<T>(rc: Rc<T>) -> Result<T, Rc<T>> {
|
|||
/// # Example
|
||||
///
|
||||
/// ```
|
||||
/// use std::rc::{mod, Rc};
|
||||
/// use std::rc::{self, Rc};
|
||||
///
|
||||
/// let mut x = Rc::new(3u);
|
||||
/// *rc::get_mut(&mut x).unwrap() = 4u;
|
||||
|
|
|
@ -157,7 +157,7 @@ use core::mem::{zeroed, replace, swap};
|
|||
use core::ptr;
|
||||
|
||||
use slice;
|
||||
use vec::{mod, Vec};
|
||||
use vec::{self, Vec};
|
||||
|
||||
/// A priority queue implemented with a binary heap.
|
||||
///
|
||||
|
|
|
@ -89,7 +89,7 @@ use core::fmt;
|
|||
use core::hash;
|
||||
use core::iter::RandomAccessIterator;
|
||||
use core::iter::{Chain, Enumerate, Repeat, Skip, Take, repeat, Cloned};
|
||||
use core::iter::{mod, FromIterator};
|
||||
use core::iter::{self, FromIterator};
|
||||
use core::num::Int;
|
||||
use core::ops::Index;
|
||||
use core::slice;
|
||||
|
|
|
@ -33,9 +33,9 @@ use ring_buf::RingBuf;
|
|||
use self::Continuation::{Continue, Finished};
|
||||
use self::StackOp::*;
|
||||
use super::node::ForceResult::{Leaf, Internal};
|
||||
use super::node::TraversalItem::{mod, Elem, Edge};
|
||||
use super::node::TraversalItem::{self, Elem, Edge};
|
||||
use super::node::{Traversal, MutTraversal, MoveTraversal};
|
||||
use super::node::{mod, Node, Found, GoDown};
|
||||
use super::node::{self, Node, Found, GoDown};
|
||||
|
||||
// FIXME(conventions): implement bounded iterators
|
||||
|
||||
|
@ -505,7 +505,7 @@ mod stack {
|
|||
use core::mem;
|
||||
use core::ops::{Deref, DerefMut};
|
||||
use super::BTreeMap;
|
||||
use super::super::node::{mod, Node, Fit, Split, Internal, Leaf};
|
||||
use super::super::node::{self, Node, Fit, Split, Internal, Leaf};
|
||||
use super::super::node::handle;
|
||||
use vec::Vec;
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
use core::prelude::*;
|
||||
|
||||
use core::borrow::BorrowFrom;
|
||||
use core::cmp::Ordering::{mod, Less, Greater, Equal};
|
||||
use core::cmp::Ordering::{self, Less, Greater, Equal};
|
||||
use core::default::Default;
|
||||
use core::fmt::Show;
|
||||
use core::fmt;
|
||||
|
|
|
@ -26,7 +26,7 @@ use core::cmp::Ordering;
|
|||
use core::default::Default;
|
||||
use core::fmt;
|
||||
use core::hash::{Writer, Hash};
|
||||
use core::iter::{mod, FromIterator};
|
||||
use core::iter::{self, FromIterator};
|
||||
use core::mem;
|
||||
use core::ptr;
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ use core::prelude::*;
|
|||
use core::cmp::Ordering;
|
||||
use core::default::Default;
|
||||
use core::fmt;
|
||||
use core::iter::{mod, FromIterator, RandomAccessIterator};
|
||||
use core::iter::{self, FromIterator, RandomAccessIterator};
|
||||
use core::kinds::marker;
|
||||
use core::mem;
|
||||
use core::num::{Int, UnsignedInt};
|
||||
|
|
|
@ -90,15 +90,15 @@
|
|||
use alloc::boxed::Box;
|
||||
use core::borrow::{BorrowFrom, BorrowFromMut, ToOwned};
|
||||
use core::clone::Clone;
|
||||
use core::cmp::Ordering::{mod, Greater, Less};
|
||||
use core::cmp::{mod, Ord, PartialEq};
|
||||
use core::cmp::Ordering::{self, Greater, Less};
|
||||
use core::cmp::{self, Ord, PartialEq};
|
||||
use core::iter::{Iterator, IteratorExt, IteratorCloneExt};
|
||||
use core::iter::{range, range_step, MultiplicativeIterator};
|
||||
use core::kinds::Sized;
|
||||
use core::mem::size_of;
|
||||
use core::mem;
|
||||
use core::ops::{FnMut, SliceMut};
|
||||
use core::option::Option::{mod, Some, None};
|
||||
use core::option::Option::{self, Some, None};
|
||||
use core::ptr::PtrExt;
|
||||
use core::ptr;
|
||||
use core::result::Result;
|
||||
|
|
|
@ -64,10 +64,10 @@ use core::default::Default;
|
|||
use core::fmt;
|
||||
use core::hash;
|
||||
use core::iter::AdditiveIterator;
|
||||
use core::iter::{mod, range, Iterator, IteratorExt};
|
||||
use core::iter::{self, range, Iterator, IteratorExt};
|
||||
use core::kinds::Sized;
|
||||
use core::ops;
|
||||
use core::option::Option::{mod, Some, None};
|
||||
use core::option::Option::{self, Some, None};
|
||||
use core::slice::AsSlice;
|
||||
use core::str as core_str;
|
||||
use unicode::str::{UnicodeStr, Utf16Encoder};
|
||||
|
|
|
@ -23,13 +23,13 @@ use core::fmt;
|
|||
use core::hash;
|
||||
use core::iter::FromIterator;
|
||||
use core::mem;
|
||||
use core::ops::{mod, Deref, Add};
|
||||
use core::ops::{self, Deref, Add};
|
||||
use core::ptr;
|
||||
use core::raw::Slice as RawSlice;
|
||||
use unicode::str as unicode_str;
|
||||
use unicode::str::Utf16Item;
|
||||
|
||||
use str::{mod, CharRange, FromStr, Utf8Error};
|
||||
use str::{self, CharRange, FromStr, Utf8Error};
|
||||
use vec::{DerefVec, Vec, as_vec};
|
||||
|
||||
/// A growable string stored as a UTF-8 encoded buffer.
|
||||
|
|
|
@ -53,7 +53,7 @@ use core::cmp::max;
|
|||
use core::cmp::{Equiv, Ordering};
|
||||
use core::default::Default;
|
||||
use core::fmt;
|
||||
use core::hash::{mod, Hash};
|
||||
use core::hash::{self, Hash};
|
||||
use core::iter::{repeat, FromIterator};
|
||||
use core::kinds::marker::{ContravariantLifetime, InvariantType};
|
||||
use core::mem;
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
use self::Ordering::*;
|
||||
|
||||
use kinds::Sized;
|
||||
use option::Option::{mod, Some, None};
|
||||
use option::Option::{self, Some, None};
|
||||
|
||||
/// Trait for equality comparisons which are [partial equivalence relations](
|
||||
/// http://en.wikipedia.org/wiki/Partial_equivalence_relation).
|
||||
|
|
|
@ -22,8 +22,8 @@ use num::{cast, Float, ToPrimitive};
|
|||
use num::FpCategory as Fp;
|
||||
use ops::FnOnce;
|
||||
use result::Result::Ok;
|
||||
use slice::{mod, SliceExt};
|
||||
use str::{mod, StrExt};
|
||||
use slice::{self, SliceExt};
|
||||
use str::{self, StrExt};
|
||||
|
||||
/// A flag that specifies whether to use exponential (scientific) notation.
|
||||
pub enum ExponentFormat {
|
||||
|
|
|
@ -24,7 +24,7 @@ use result::Result::{Ok, Err};
|
|||
use result;
|
||||
use slice::SliceExt;
|
||||
use slice;
|
||||
use str::{mod, StrExt, Utf8Error};
|
||||
use str::{self, StrExt, Utf8Error};
|
||||
|
||||
pub use self::num::radix;
|
||||
pub use self::num::Radix;
|
||||
|
|
|
@ -1176,7 +1176,7 @@ impl<T: Clone> MinMaxResult<T> {
|
|||
/// # Example
|
||||
///
|
||||
/// ```rust
|
||||
/// use std::iter::MinMaxResult::{mod, NoElements, OneElement, MinMax};
|
||||
/// use std::iter::MinMaxResult::{self, NoElements, OneElement, MinMax};
|
||||
///
|
||||
/// let r: MinMaxResult<int> = NoElements;
|
||||
/// assert_eq!(r.into_option(), None);
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
use clone::Clone;
|
||||
use iter::{Step, Iterator,DoubleEndedIterator,ExactSizeIterator};
|
||||
use kinds::Sized;
|
||||
use option::Option::{mod, Some, None};
|
||||
use option::Option::{self, Some, None};
|
||||
|
||||
/// The `Drop` trait is used to run some code when a value goes out of scope. This
|
||||
/// is sometimes called a 'destructor'.
|
||||
|
|
|
@ -45,8 +45,8 @@ pub use iter::{Extend, IteratorExt};
|
|||
pub use iter::{Iterator, DoubleEndedIterator};
|
||||
pub use iter::{IteratorCloneExt, CloneIteratorExt};
|
||||
pub use iter::{IteratorOrdExt, ExactSizeIterator};
|
||||
pub use option::Option::{mod, Some, None};
|
||||
pub use option::Option::{self, Some, None};
|
||||
pub use ptr::{PtrExt, MutPtrExt};
|
||||
pub use result::Result::{mod, Ok, Err};
|
||||
pub use result::Result::{self, Ok, Err};
|
||||
pub use slice::{AsSlice, SliceExt};
|
||||
pub use str::{Str, StrExt};
|
||||
|
|
|
@ -91,11 +91,11 @@
|
|||
use mem;
|
||||
use clone::Clone;
|
||||
use intrinsics;
|
||||
use option::Option::{mod, Some, None};
|
||||
use option::Option::{self, Some, None};
|
||||
use kinds::{Send, Sized, Sync};
|
||||
|
||||
use cmp::{PartialEq, Eq, Ord, PartialOrd, Equiv};
|
||||
use cmp::Ordering::{mod, Less, Equal, Greater};
|
||||
use cmp::Ordering::{self, Less, Equal, Greater};
|
||||
|
||||
// FIXME #19649: instrinsic docs don't render, so these have no docs :(
|
||||
|
||||
|
|
|
@ -236,7 +236,7 @@ use clone::Clone;
|
|||
use fmt::Show;
|
||||
use iter::{Iterator, IteratorExt, DoubleEndedIterator, FromIterator, ExactSizeIterator};
|
||||
use ops::{FnMut, FnOnce};
|
||||
use option::Option::{mod, None, Some};
|
||||
use option::Option::{self, None, Some};
|
||||
use slice::AsSlice;
|
||||
use slice;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
use self::Searcher::{Naive, TwoWay, TwoWayLong};
|
||||
|
||||
use cmp::{mod, Eq};
|
||||
use cmp::{self, Eq};
|
||||
use default::Default;
|
||||
use iter::range;
|
||||
use iter::ExactSizeIterator;
|
||||
|
@ -27,11 +27,11 @@ use kinds::Sized;
|
|||
use mem;
|
||||
use num::Int;
|
||||
use ops::{Fn, FnMut};
|
||||
use option::Option::{mod, None, Some};
|
||||
use option::Option::{self, None, Some};
|
||||
use ptr::PtrExt;
|
||||
use raw::{Repr, Slice};
|
||||
use result::Result::{mod, Ok, Err};
|
||||
use slice::{mod, SliceExt};
|
||||
use result::Result::{self, Ok, Err};
|
||||
use slice::{self, SliceExt};
|
||||
use uint;
|
||||
|
||||
macro_rules! delegate_iter {
|
||||
|
|
|
@ -37,7 +37,7 @@ pub use self::MatchKind::*;
|
|||
pub use self::StepState::*;
|
||||
|
||||
use std::cmp;
|
||||
use std::cmp::Ordering::{mod, Less, Equal, Greater};
|
||||
use std::cmp::Ordering::{self, Less, Equal, Greater};
|
||||
use std::mem;
|
||||
use std::iter::repeat;
|
||||
use std::slice::SliceExt;
|
||||
|
|
|
@ -29,7 +29,7 @@ use self::MethodContext::*;
|
|||
use metadata::csearch;
|
||||
use middle::def::*;
|
||||
use middle::subst::Substs;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::{def, pat_util, stability};
|
||||
use middle::const_eval::{eval_const_expr_partial, const_int, const_uint};
|
||||
use util::ppaux::{ty_to_string};
|
||||
|
@ -43,13 +43,13 @@ use std::{i8, i16, i32, i64, u8, u16, u32, u64, f32, f64};
|
|||
|
||||
use syntax::{abi, ast, ast_map};
|
||||
use syntax::ast_util::is_shift_binop;
|
||||
use syntax::attr::{mod, AttrMetaMethods};
|
||||
use syntax::attr::{self, AttrMetaMethods};
|
||||
use syntax::codemap::{Span, DUMMY_SP};
|
||||
use syntax::parse::token;
|
||||
use syntax::ast::{TyI, TyU, TyI8, TyU8, TyI16, TyU16, TyI32, TyU32, TyI64, TyU64};
|
||||
use syntax::ast_util;
|
||||
use syntax::ptr::P;
|
||||
use syntax::visit::{mod, Visitor};
|
||||
use syntax::visit::{self, Visitor};
|
||||
|
||||
declare_lint! {
|
||||
WHILE_TRUE,
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
use self::TargetLint::*;
|
||||
|
||||
use middle::privacy::ExportedItems;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use session::{early_error, Session};
|
||||
use lint::{Level, LevelSource, Lint, LintId, LintArray, LintPass, LintPassObject};
|
||||
use lint::{Default, CommandLine, Node, Allow, Warn, Deny, Forbid};
|
||||
|
|
|
@ -29,7 +29,7 @@ use middle::def;
|
|||
use middle::lang_items;
|
||||
use middle::subst;
|
||||
use middle::ty::{ImplContainer, TraitContainer};
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::astencode::vtable_decoder_helpers;
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
|
|
@ -23,7 +23,7 @@ use metadata::decoder;
|
|||
use metadata::tyencode;
|
||||
use middle::def;
|
||||
use middle::ty::{lookup_item_type};
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::stability;
|
||||
use util::nodemap::{FnvHashMap, NodeMap, NodeSet};
|
||||
|
||||
|
@ -32,7 +32,7 @@ use std::cell::RefCell;
|
|||
use std::hash::Hash;
|
||||
use std::hash;
|
||||
use syntax::abi;
|
||||
use syntax::ast::{mod, DefId, NodeId};
|
||||
use syntax::ast::{self, DefId, NodeId};
|
||||
use syntax::ast_map::{PathElem, PathElems};
|
||||
use syntax::ast_map;
|
||||
use syntax::ast_util::*;
|
||||
|
|
|
@ -21,7 +21,7 @@ pub use self::DefIdSource::*;
|
|||
use middle::region;
|
||||
use middle::subst;
|
||||
use middle::subst::VecPerParamSpace;
|
||||
use middle::ty::{mod, AsPredicate, Ty};
|
||||
use middle::ty::{self, AsPredicate, Ty};
|
||||
|
||||
use std::rc::Rc;
|
||||
use std::str;
|
||||
|
|
|
@ -19,7 +19,7 @@ use middle::region;
|
|||
use middle::subst;
|
||||
use middle::subst::VecPerParamSpace;
|
||||
use middle::ty::ParamTy;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use util::nodemap::FnvHashMap;
|
||||
|
||||
use syntax::abi::Abi;
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
|
||||
use middle::def;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use syntax::ast;
|
||||
use util::ppaux::Repr;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ use metadata::tyencode;
|
|||
use middle::mem_categorization::Typer;
|
||||
use middle::subst;
|
||||
use middle::subst::VecPerParamSpace;
|
||||
use middle::ty::{mod, Ty, MethodCall, MethodCallee, MethodOrigin};
|
||||
use middle::ty::{self, Ty, MethodCall, MethodCallee, MethodOrigin};
|
||||
use util::ppaux::ty_to_string;
|
||||
|
||||
use syntax::{ast, ast_map, ast_util, codemap, fold};
|
||||
|
|
|
@ -27,14 +27,14 @@ use std::fmt;
|
|||
use std::iter::{range_inclusive, AdditiveIterator, FromIterator, repeat};
|
||||
use std::num::Float;
|
||||
use std::slice;
|
||||
use syntax::ast::{mod, DUMMY_NODE_ID, NodeId, Pat};
|
||||
use syntax::ast::{self, DUMMY_NODE_ID, NodeId, Pat};
|
||||
use syntax::ast_util::walk_pat;
|
||||
use syntax::codemap::{Span, Spanned, DUMMY_SP};
|
||||
use syntax::fold::{Folder, noop_fold_pat};
|
||||
use syntax::print::pprust::pat_to_string;
|
||||
use syntax::parse::token;
|
||||
use syntax::ptr::P;
|
||||
use syntax::visit::{mod, Visitor, FnKind};
|
||||
use syntax::visit::{self, Visitor, FnKind};
|
||||
use util::ppaux::ty_to_string;
|
||||
|
||||
pub const DUMMY_WILD_PAT: &'static Pat = &Pat {
|
||||
|
|
|
@ -21,10 +21,10 @@ use middle::ty::{mod};
|
|||
use middle::astconv_util::{ast_ty_to_prim_ty};
|
||||
use util::nodemap::DefIdMap;
|
||||
|
||||
use syntax::ast::{mod, Expr};
|
||||
use syntax::ast::{self, Expr};
|
||||
use syntax::parse::token::InternedString;
|
||||
use syntax::ptr::P;
|
||||
use syntax::visit::{mod, Visitor};
|
||||
use syntax::visit::{self, Visitor};
|
||||
use syntax::{ast_map, ast_util, codemap};
|
||||
|
||||
use std::collections::hash_map::Entry::Vacant;
|
||||
|
|
|
@ -19,8 +19,8 @@ use util::nodemap::NodeSet;
|
|||
use std::collections::HashSet;
|
||||
use syntax::{ast, ast_map, codemap};
|
||||
use syntax::ast_util::{local_def, is_local, PostExpansionMethod};
|
||||
use syntax::attr::{mod, AttrMetaMethods};
|
||||
use syntax::visit::{mod, Visitor};
|
||||
use syntax::attr::{self, AttrMetaMethods};
|
||||
use syntax::visit::{self, Visitor};
|
||||
|
||||
// Any local node that may call something in its body block should be
|
||||
// explored. For example, if it's a live NodeItem that is a
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
use self::UnsafeContext::*;
|
||||
|
||||
use middle::def;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::ty::MethodCall;
|
||||
use util::ppaux;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use syntax::ast;
|
||||
|
||||
use self::SimplifiedType::*;
|
||||
|
|
|
@ -67,7 +67,7 @@ use super::sub::Sub;
|
|||
use middle::subst;
|
||||
use middle::ty::{AutoPtr, AutoDerefRef, AdjustDerefRef, AutoUnsize, AutoUnsafe};
|
||||
use middle::ty::{mt};
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use util::ppaux;
|
||||
use util::ppaux::Repr;
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ use middle::subst::{ErasedRegions, NonerasedRegions, Substs};
|
|||
use middle::ty::{FloatVar, FnSig, IntVar, TyVar};
|
||||
use middle::ty::{IntType, UintType};
|
||||
use middle::ty::{BuiltinBounds};
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::ty_fold;
|
||||
use middle::ty_fold::{TypeFoldable};
|
||||
use util::ppaux::Repr;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
use middle::ty::{BuiltinBounds};
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::ty::TyVar;
|
||||
use middle::infer::combine::*;
|
||||
use middle::infer::{cres};
|
||||
|
|
|
@ -74,7 +74,7 @@ use std::collections::HashSet;
|
|||
use middle::def;
|
||||
use middle::infer;
|
||||
use middle::subst;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::ty::{Region, ReFree};
|
||||
use std::cell::{Cell, RefCell};
|
||||
use std::char::from_u32;
|
||||
|
|
|
@ -30,11 +30,11 @@
|
|||
//! variable only once, and it does so as soon as it can, so it is reasonable to ask what the type
|
||||
//! inferencer knows "so far".
|
||||
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::ty_fold;
|
||||
use middle::ty_fold::TypeFoldable;
|
||||
use middle::ty_fold::TypeFolder;
|
||||
use std::collections::hash_map::{mod, Entry};
|
||||
use std::collections::hash_map::{self, Entry};
|
||||
|
||||
use super::InferCtxt;
|
||||
use super::unify::InferCtxtMethodsForSimplyUnifiableTypes;
|
||||
|
|
|
@ -18,7 +18,7 @@ use super::{cres, InferCtxt};
|
|||
use super::{TypeTrace, Subtype};
|
||||
|
||||
use middle::ty::{BuiltinBounds};
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use syntax::ast::{Many, Once, MutImmutable, MutMutable};
|
||||
use syntax::ast::{Onceness, Unsafety};
|
||||
use util::ppaux::mt_to_string;
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
use super::{CombinedSnapshot, cres, InferCtxt, HigherRankedType, SkolemizationMap};
|
||||
use super::combine::{Combine, Combineable};
|
||||
|
||||
use middle::ty::{mod, Binder};
|
||||
use middle::ty_fold::{mod, TypeFoldable};
|
||||
use middle::ty::{self, Binder};
|
||||
use middle::ty_fold::{self, TypeFoldable};
|
||||
use syntax::codemap::Span;
|
||||
use util::nodemap::{FnvHashMap, FnvHashSet};
|
||||
use util::ppaux::Repr;
|
||||
|
|
|
@ -35,7 +35,7 @@ use super::glb::Glb;
|
|||
use super::lub::Lub;
|
||||
|
||||
use middle::ty::{TyVar};
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use util::ppaux::Repr;
|
||||
|
||||
pub trait LatticeDir<'tcx> {
|
||||
|
|
|
@ -18,7 +18,7 @@ use super::{cres, InferCtxt};
|
|||
use super::{TypeTrace, Subtype};
|
||||
|
||||
use middle::ty::{BuiltinBounds};
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use syntax::ast::{Many, Once};
|
||||
use syntax::ast::{Onceness, Unsafety};
|
||||
use syntax::ast::{MutMutable, MutImmutable};
|
||||
|
|
|
@ -25,7 +25,7 @@ use middle::subst;
|
|||
use middle::subst::Substs;
|
||||
use middle::ty::{TyVid, IntVid, FloatVid, RegionVid, UnconstrainedNumeric};
|
||||
use middle::ty::replace_late_bound_regions;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::ty_fold::{TypeFolder, TypeFoldable};
|
||||
use std::cell::{RefCell};
|
||||
use std::rc::Rc;
|
||||
|
|
|
@ -27,7 +27,7 @@ use util::nodemap::{FnvHashMap, FnvHashSet};
|
|||
use util::ppaux::Repr;
|
||||
|
||||
use std::collections::hash_map::Entry::Vacant;
|
||||
use std::io::{mod, File};
|
||||
use std::io::{self, File};
|
||||
use std::os;
|
||||
use std::sync::atomic;
|
||||
use syntax::ast;
|
||||
|
|
|
@ -33,7 +33,7 @@ use util::nodemap::{FnvHashMap, FnvHashSet};
|
|||
use util::ppaux::Repr;
|
||||
|
||||
use std::cell::{Cell, RefCell};
|
||||
use std::cmp::Ordering::{mod, Less, Greater, Equal};
|
||||
use std::cmp::Ordering::{self, Less, Greater, Equal};
|
||||
use std::iter::repeat;
|
||||
use std::u32;
|
||||
use syntax::ast;
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
// except according to those terms.
|
||||
|
||||
use super::{InferCtxt, fixup_err, fres, unresolved_ty, unresolved_int_ty, unresolved_float_ty};
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty_fold::{mod, TypeFoldable};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::ty_fold::{self, TypeFoldable};
|
||||
use util::ppaux::Repr;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -19,7 +19,7 @@ use super::{TypeTrace, Subtype};
|
|||
use super::type_variable::{SubtypeOf, SupertypeOf};
|
||||
|
||||
use middle::ty::{BuiltinBounds};
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::ty::TyVar;
|
||||
use util::ppaux::{Repr};
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ pub use self::RelationDir::*;
|
|||
use self::TypeVariableValue::*;
|
||||
use self::UndoEntry::*;
|
||||
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use std::cmp::min;
|
||||
use std::mem;
|
||||
use std::u32;
|
||||
|
|
|
@ -13,7 +13,7 @@ pub use self::VarValue::*;
|
|||
use std::kinds::marker;
|
||||
|
||||
use middle::ty::{expected_found, IntVarValue};
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::infer::{uok, ures};
|
||||
use middle::infer::InferCtxt;
|
||||
use std::cell::RefCell;
|
||||
|
|
|
@ -12,7 +12,7 @@ use metadata::csearch;
|
|||
use middle::def::DefFn;
|
||||
use middle::subst::{Subst, Substs, EnumeratedItems};
|
||||
use middle::ty::{TransmuteRestriction, ctxt, ty_bare_fn};
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use util::ppaux::Repr;
|
||||
|
||||
use syntax::abi::RustIntrinsic;
|
||||
|
|
|
@ -120,13 +120,13 @@ use util::nodemap::NodeMap;
|
|||
use std::{fmt, io, uint};
|
||||
use std::rc::Rc;
|
||||
use std::iter::repeat;
|
||||
use syntax::ast::{mod, NodeId, Expr};
|
||||
use syntax::ast::{self, NodeId, Expr};
|
||||
use syntax::codemap::{BytePos, original_sp, Span};
|
||||
use syntax::parse::token::{mod, special_idents};
|
||||
use syntax::parse::token::{self, special_idents};
|
||||
use syntax::print::pprust::{expr_to_string, block_to_string};
|
||||
use syntax::ptr::P;
|
||||
use syntax::ast_util;
|
||||
use syntax::visit::{mod, Visitor, FnKind};
|
||||
use syntax::visit::{self, Visitor, FnKind};
|
||||
|
||||
/// For use with `propagate_through_loop`.
|
||||
enum LoopKind<'a> {
|
||||
|
|
|
@ -73,7 +73,7 @@ pub use self::categorization::*;
|
|||
|
||||
use middle::def;
|
||||
use middle::region;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use util::nodemap::{NodeMap};
|
||||
use util::ppaux::{Repr};
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ use std::mem::replace;
|
|||
|
||||
use metadata::csearch;
|
||||
use middle::def;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::ty::{MethodCall, MethodMap, MethodOrigin, MethodParam, MethodTypeParam};
|
||||
use middle::ty::{MethodStatic, MethodStaticUnboxedClosure, MethodObject, MethodTraitObject};
|
||||
use util::nodemap::{DefIdSet, NodeMap, NodeSet};
|
||||
|
@ -30,7 +30,7 @@ use syntax::{ast, ast_map};
|
|||
use syntax::ast_util::{is_local, local_def, PostExpansionMethod};
|
||||
use syntax::codemap::Span;
|
||||
use syntax::parse::token;
|
||||
use syntax::visit::{mod, Visitor};
|
||||
use syntax::visit::{self, Visitor};
|
||||
|
||||
type Context<'a, 'tcx> = (&'a MethodMap<'tcx>, &'a def::ExportMap);
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
//! `middle/typeck/infer/region_inference.rs`
|
||||
|
||||
use session::Session;
|
||||
use middle::ty::{mod, Ty, FreeRegion};
|
||||
use middle::ty::{self, Ty, FreeRegion};
|
||||
use util::nodemap::{FnvHashMap, FnvHashSet, NodeMap};
|
||||
use util::common::can_reach;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ pub use self::DefRegion::*;
|
|||
use self::ScopeChain::*;
|
||||
|
||||
use session::Session;
|
||||
use middle::def::{mod, DefMap};
|
||||
use middle::def::{self, DefMap};
|
||||
use middle::region;
|
||||
use middle::subst;
|
||||
use middle::ty;
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
pub use self::ParamSpace::*;
|
||||
pub use self::RegionSubsts::*;
|
||||
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty_fold::{mod, TypeFoldable, TypeFolder};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::ty_fold::{self, TypeFoldable, TypeFolder};
|
||||
use util::ppaux::Repr;
|
||||
|
||||
use std::fmt;
|
||||
|
|
|
@ -15,7 +15,7 @@ use super::{Obligation, ObligationCause};
|
|||
use super::util;
|
||||
|
||||
use middle::subst::Subst;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::infer::InferCtxt;
|
||||
use std::collections::HashSet;
|
||||
use std::rc::Rc;
|
||||
|
|
|
@ -19,7 +19,7 @@ use super::{
|
|||
};
|
||||
|
||||
use middle::infer::InferCtxt;
|
||||
use middle::ty::{mod, AsPredicate, ReferencesError, ToPolyTraitRef};
|
||||
use middle::ty::{self, AsPredicate, ReferencesError, ToPolyTraitRef};
|
||||
use syntax::codemap::Span;
|
||||
use util::ppaux::{Repr, UserString};
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
use middle::infer::{InferCtxt};
|
||||
use middle::mem_categorization::Typer;
|
||||
use middle::ty::{mod, RegionEscape, Ty};
|
||||
use middle::ty::{self, RegionEscape, Ty};
|
||||
use std::collections::HashSet;
|
||||
use std::collections::hash_map::Entry::{Occupied, Vacant};
|
||||
use std::default::Default;
|
||||
|
|
|
@ -17,7 +17,7 @@ pub use self::ObligationCauseCode::*;
|
|||
|
||||
use middle::mem_categorization::Typer;
|
||||
use middle::subst;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::infer::InferCtxt;
|
||||
use std::slice::Iter;
|
||||
use std::rc::Rc;
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
use super::supertraits;
|
||||
use super::elaborate_predicates;
|
||||
|
||||
use middle::subst::{mod, SelfSpace};
|
||||
use middle::subst::{self, SelfSpace};
|
||||
use middle::traits;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use std::rc::Rc;
|
||||
use syntax::ast;
|
||||
use util::ppaux::Repr;
|
||||
|
|
|
@ -21,9 +21,9 @@ use super::VtableImplData;
|
|||
|
||||
use middle::infer;
|
||||
use middle::subst::Subst;
|
||||
use middle::ty::{mod, AsPredicate, ReferencesError, RegionEscape,
|
||||
use middle::ty::{self, AsPredicate, ReferencesError, RegionEscape,
|
||||
HasProjectionTypes, ToPolyTraitRef, Ty};
|
||||
use middle::ty_fold::{mod, TypeFoldable, TypeFolder};
|
||||
use middle::ty_fold::{self, TypeFoldable, TypeFolder};
|
||||
use std::rc::Rc;
|
||||
use util::ppaux::Repr;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ use super::{util};
|
|||
use middle::fast_reject;
|
||||
use middle::mem_categorization::Typer;
|
||||
use middle::subst::{Subst, Substs, TypeSpace, VecPerParamSpace};
|
||||
use middle::ty::{mod, AsPredicate, RegionEscape, ToPolyTraitRef, Ty};
|
||||
use middle::ty::{self, AsPredicate, RegionEscape, ToPolyTraitRef, Ty};
|
||||
use middle::infer;
|
||||
use middle::infer::{InferCtxt, TypeFreshener};
|
||||
use middle::ty_fold::TypeFoldable;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
use middle::subst::{Substs, VecPerParamSpace};
|
||||
use middle::infer::InferCtxt;
|
||||
use middle::ty::{mod, Ty, AsPredicate, ToPolyTraitRef};
|
||||
use middle::ty::{self, Ty, AsPredicate, ToPolyTraitRef};
|
||||
use std::collections::HashSet;
|
||||
use std::fmt;
|
||||
use std::rc::Rc;
|
||||
|
|
|
@ -46,7 +46,7 @@ use lint;
|
|||
use metadata::csearch;
|
||||
use middle;
|
||||
use middle::const_eval;
|
||||
use middle::def::{mod, DefMap, ExportMap};
|
||||
use middle::def::{self, DefMap, ExportMap};
|
||||
use middle::dependency_format;
|
||||
use middle::lang_items::{FnTraitLangItem, FnMutTraitLangItem};
|
||||
use middle::lang_items::{FnOnceTraitLangItem, TyDescStructLangItem};
|
||||
|
@ -55,10 +55,10 @@ use middle::region;
|
|||
use middle::resolve_lifetime;
|
||||
use middle::infer;
|
||||
use middle::stability;
|
||||
use middle::subst::{mod, Subst, Substs, VecPerParamSpace};
|
||||
use middle::subst::{self, Subst, Substs, VecPerParamSpace};
|
||||
use middle::traits;
|
||||
use middle::ty;
|
||||
use middle::ty_fold::{mod, TypeFoldable, TypeFolder};
|
||||
use middle::ty_fold::{self, TypeFoldable, TypeFolder};
|
||||
use middle::ty_walk::TypeWalker;
|
||||
use util::ppaux::{note_and_explain_region, bound_region_ptr_to_string};
|
||||
use util::ppaux::{trait_store_to_string, ty_to_string};
|
||||
|
@ -70,8 +70,8 @@ use util::nodemap::{FnvHashMap};
|
|||
use arena::TypedArena;
|
||||
use std::borrow::BorrowFrom;
|
||||
use std::cell::{Cell, RefCell};
|
||||
use std::cmp::{mod, Ordering};
|
||||
use std::fmt::{mod, Show};
|
||||
use std::cmp::{self, Ordering};
|
||||
use std::fmt::{self, Show};
|
||||
use std::hash::{Hash, sip, Writer};
|
||||
use std::mem;
|
||||
use std::ops;
|
||||
|
@ -84,10 +84,10 @@ use syntax::ast::{CrateNum, DefId, Ident, ItemTrait, LOCAL_CRATE};
|
|||
use syntax::ast::{MutImmutable, MutMutable, Name, NamedField, NodeId};
|
||||
use syntax::ast::{Onceness, StmtExpr, StmtSemi, StructField, UnnamedField};
|
||||
use syntax::ast::{Visibility};
|
||||
use syntax::ast_util::{mod, is_local, lit_is_str, local_def, PostExpansionMethod};
|
||||
use syntax::attr::{mod, AttrMetaMethods};
|
||||
use syntax::ast_util::{self, is_local, lit_is_str, local_def, PostExpansionMethod};
|
||||
use syntax::attr::{self, AttrMetaMethods};
|
||||
use syntax::codemap::Span;
|
||||
use syntax::parse::token::{mod, InternedString, special_idents};
|
||||
use syntax::parse::token::{self, InternedString, special_idents};
|
||||
use syntax::{ast, ast_map};
|
||||
|
||||
pub type Disr = u64;
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
use middle::subst;
|
||||
use middle::subst::VecPerParamSpace;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::traits;
|
||||
use std::rc::Rc;
|
||||
use syntax::owned_slice::OwnedSlice;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
//! An iterator over the type substructure.
|
||||
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use std::iter::Iterator;
|
||||
|
||||
pub struct TypeWalker<'tcx> {
|
||||
|
|
|
@ -17,7 +17,7 @@ use util::nodemap::NodeMap;
|
|||
|
||||
use syntax::ast::NodeId;
|
||||
use syntax::codemap::Span;
|
||||
use syntax::diagnostic::{mod, Emitter};
|
||||
use syntax::diagnostic::{self, Emitter};
|
||||
use syntax::diagnostics;
|
||||
use syntax::feature_gate;
|
||||
use syntax::parse;
|
||||
|
|
|
@ -25,7 +25,7 @@ use rustc::middle::dataflow::DataFlowOperator;
|
|||
use rustc::middle::expr_use_visitor as euv;
|
||||
use rustc::middle::mem_categorization as mc;
|
||||
use rustc::middle::region;
|
||||
use rustc::middle::ty::{mod, Ty};
|
||||
use rustc::middle::ty::{self, Ty};
|
||||
use rustc::util::ppaux::{note_and_explain_region, Repr, UserString};
|
||||
use std::rc::Rc;
|
||||
use std::string::String;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
use rustc::session::Session;
|
||||
use rustc::session::config::{mod, Input, OutputFilenames};
|
||||
use rustc::session::config::{self, Input, OutputFilenames};
|
||||
use rustc::session::search_paths::PathKind;
|
||||
use rustc::lint;
|
||||
use rustc::metadata::creader;
|
||||
|
|
|
@ -23,21 +23,21 @@ use rustc::middle::ty;
|
|||
use rustc::middle::cfg;
|
||||
use rustc::middle::cfg::graphviz::LabelledCFG;
|
||||
use rustc::session::Session;
|
||||
use rustc::session::config::{mod, Input};
|
||||
use rustc::session::config::{self, Input};
|
||||
use rustc::util::ppaux;
|
||||
use rustc_borrowck as borrowck;
|
||||
use rustc_borrowck::graphviz as borrowck_dot;
|
||||
|
||||
use syntax::ast;
|
||||
use syntax::ast_map::{mod, blocks, NodePrinter};
|
||||
use syntax::ast_map::{self, blocks, NodePrinter};
|
||||
use syntax::codemap;
|
||||
use syntax::fold::{mod, Folder};
|
||||
use syntax::fold::{self, Folder};
|
||||
use syntax::print::{pp, pprust};
|
||||
use syntax::ptr::P;
|
||||
|
||||
use graphviz as dot;
|
||||
|
||||
use std::io::{mod, MemReader};
|
||||
use std::io::{self, MemReader};
|
||||
use std::option;
|
||||
use std::str::FromStr;
|
||||
|
||||
|
|
|
@ -15,19 +15,19 @@ use diagnostic::Emitter;
|
|||
use driver;
|
||||
use rustc_resolve as resolve;
|
||||
use rustc_typeck::middle::lang_items;
|
||||
use rustc_typeck::middle::region::{mod, CodeExtent};
|
||||
use rustc_typeck::middle::region::{self, CodeExtent};
|
||||
use rustc_typeck::middle::resolve_lifetime;
|
||||
use rustc_typeck::middle::stability;
|
||||
use rustc_typeck::middle::subst;
|
||||
use rustc_typeck::middle::subst::Subst;
|
||||
use rustc_typeck::middle::ty::{mod, Ty};
|
||||
use rustc_typeck::middle::ty::{self, Ty};
|
||||
use rustc_typeck::middle::infer::combine::Combine;
|
||||
use rustc_typeck::middle::infer;
|
||||
use rustc_typeck::middle::infer::lub::Lub;
|
||||
use rustc_typeck::middle::infer::glb::Glb;
|
||||
use rustc_typeck::middle::infer::sub::Sub;
|
||||
use rustc_typeck::util::ppaux::{ty_to_string, Repr, UserString};
|
||||
use rustc::session::{mod,config};
|
||||
use rustc::session::{self,config};
|
||||
use syntax::{abi, ast, ast_map};
|
||||
use syntax::codemap;
|
||||
use syntax::codemap::{Span, CodeMap, DUMMY_SP};
|
||||
|
|
|
@ -15,13 +15,13 @@
|
|||
|
||||
use {DefModifiers, PUBLIC, IMPORTABLE};
|
||||
use ImportDirective;
|
||||
use ImportDirectiveSubclass::{mod, SingleImport, GlobImport};
|
||||
use ImportDirectiveSubclass::{self, SingleImport, GlobImport};
|
||||
use ImportResolution;
|
||||
use Module;
|
||||
use ModuleKind::*;
|
||||
use Namespace::{TypeNS, ValueNS};
|
||||
use NameBindings;
|
||||
use ParentLink::{mod, ModuleParentLink, BlockParentLink};
|
||||
use ParentLink::{self, ModuleParentLink, BlockParentLink};
|
||||
use Resolver;
|
||||
use RibKind::*;
|
||||
use Shadowable;
|
||||
|
@ -55,11 +55,11 @@ use syntax::ast::{ViewItemUse, ViewPathGlob, ViewPathList, ViewPathSimple};
|
|||
use syntax::ast::{Visibility};
|
||||
use syntax::ast::TyPath;
|
||||
use syntax::ast;
|
||||
use syntax::ast_util::{mod, PostExpansionMethod, local_def};
|
||||
use syntax::ast_util::{self, PostExpansionMethod, local_def};
|
||||
use syntax::attr::AttrMetaMethods;
|
||||
use syntax::parse::token::{mod, special_idents};
|
||||
use syntax::parse::token::{self, special_idents};
|
||||
use syntax::codemap::{Span, DUMMY_SP};
|
||||
use syntax::visit::{mod, Visitor};
|
||||
use syntax::visit::{self, Visitor};
|
||||
|
||||
use std::mem::replace;
|
||||
use std::ops::{Deref, DerefMut};
|
||||
|
|
|
@ -28,7 +28,7 @@ use syntax::ast;
|
|||
use syntax::ast::{ViewItem, ViewItemExternCrate, ViewItemUse};
|
||||
use syntax::ast::{ViewPathGlob, ViewPathList, ViewPathSimple};
|
||||
use syntax::codemap::{Span, DUMMY_SP};
|
||||
use syntax::visit::{mod, Visitor};
|
||||
use syntax::visit::{self, Visitor};
|
||||
|
||||
struct UnusedImportCheckVisitor<'a, 'b:'a, 'tcx:'b> {
|
||||
resolver: &'a mut Resolver<'b, 'tcx>
|
||||
|
|
|
@ -81,10 +81,10 @@ use syntax::ast_map;
|
|||
use syntax::ast_util::{PostExpansionMethod, local_def, walk_pat};
|
||||
use syntax::attr::AttrMetaMethods;
|
||||
use syntax::ext::mtwt;
|
||||
use syntax::parse::token::{mod, special_names, special_idents};
|
||||
use syntax::parse::token::{self, special_names, special_idents};
|
||||
use syntax::codemap::{Span, Pos};
|
||||
use syntax::owned_slice::OwnedSlice;
|
||||
use syntax::visit::{mod, Visitor};
|
||||
use syntax::visit::{self, Visitor};
|
||||
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::collections::hash_map::Entry::{Occupied, Vacant};
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// processing.
|
||||
|
||||
use {Module, NameBindings, Resolver};
|
||||
use Namespace::{mod, TypeNS, ValueNS};
|
||||
use Namespace::{self, TypeNS, ValueNS};
|
||||
|
||||
use build_reduced_graph;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ use metadata::common::LinkMeta;
|
|||
use metadata::{encoder, cstore, filesearch, csearch, creader};
|
||||
use metadata::filesearch::FileDoesntMatch;
|
||||
use trans::{CrateContext, CrateTranslation, gensym_name};
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use util::common::time;
|
||||
use util::ppaux;
|
||||
use util::sha2::{Digest, Sha256};
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
use super::link;
|
||||
use super::write;
|
||||
use rustc::session::{mod, config};
|
||||
use rustc::session::{self, config};
|
||||
use llvm;
|
||||
use llvm::archive_ro::ArchiveRO;
|
||||
use llvm::{ModuleRef, TargetMachineRef, True, False};
|
||||
|
|
|
@ -30,20 +30,20 @@
|
|||
use session::Session;
|
||||
|
||||
use middle::def;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
|
||||
use std::cell::Cell;
|
||||
use std::io::{mod, File, fs};
|
||||
use std::io::{self, File, fs};
|
||||
use std::os;
|
||||
|
||||
use syntax::ast_util::{mod, PostExpansionMethod};
|
||||
use syntax::ast::{mod, NodeId, DefId};
|
||||
use syntax::ast_util::{self, PostExpansionMethod};
|
||||
use syntax::ast::{self, NodeId, DefId};
|
||||
use syntax::ast_map::NodeItem;
|
||||
use syntax::attr;
|
||||
use syntax::codemap::*;
|
||||
use syntax::parse::token::{mod, get_ident, keywords};
|
||||
use syntax::parse::token::{self, get_ident, keywords};
|
||||
use syntax::owned_slice::OwnedSlice;
|
||||
use syntax::visit::{mod, Visitor};
|
||||
use syntax::visit::{self, Visitor};
|
||||
use syntax::print::pprust::{path_to_string,ty_to_string};
|
||||
use syntax::ptr::P;
|
||||
|
||||
|
|
|
@ -193,7 +193,7 @@ use llvm::{ValueRef, BasicBlockRef};
|
|||
use middle::check_match::StaticInliner;
|
||||
use middle::check_match;
|
||||
use middle::const_eval;
|
||||
use middle::def::{mod, DefMap};
|
||||
use middle::def::{self, DefMap};
|
||||
use middle::expr_use_visitor as euv;
|
||||
use middle::lang_items::StrEqFnLangItem;
|
||||
use middle::mem_categorization as mc;
|
||||
|
@ -204,15 +204,15 @@ use trans::build::{AddCase, And, BitCast, Br, CondBr, GEPi, InBoundsGEP, Load};
|
|||
use trans::build::{Mul, Not, Store, Sub, add_comment};
|
||||
use trans::build;
|
||||
use trans::callee;
|
||||
use trans::cleanup::{mod, CleanupMethods};
|
||||
use trans::cleanup::{self, CleanupMethods};
|
||||
use trans::common::*;
|
||||
use trans::consts;
|
||||
use trans::datum::*;
|
||||
use trans::expr::{mod, Dest};
|
||||
use trans::expr::{self, Dest};
|
||||
use trans::tvec;
|
||||
use trans::type_of;
|
||||
use trans::debuginfo;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use session::config::FullDebugInfo;
|
||||
use util::common::indenter;
|
||||
use util::nodemap::FnvHashMap;
|
||||
|
|
|
@ -61,7 +61,7 @@ use trans::datum;
|
|||
use trans::machine;
|
||||
use trans::type_::Type;
|
||||
use trans::type_of;
|
||||
use middle::ty::{mod, Ty, UnboxedClosureTyper};
|
||||
use middle::ty::{self, Ty, UnboxedClosureTyper};
|
||||
use middle::ty::Disr;
|
||||
use syntax::ast;
|
||||
use syntax::attr;
|
||||
|
|
|
@ -43,8 +43,8 @@ use middle::lang_items::{LangItem, ExchangeMallocFnLangItem, StartFnLangItem};
|
|||
use middle::subst;
|
||||
use middle::weak_lang_items;
|
||||
use middle::subst::{Subst, Substs};
|
||||
use middle::ty::{mod, Ty, UnboxedClosureTyper};
|
||||
use session::config::{mod, NoDebugInfo, FullDebugInfo};
|
||||
use middle::ty::{self, Ty, UnboxedClosureTyper};
|
||||
use session::config::{self, NoDebugInfo, FullDebugInfo};
|
||||
use session::Session;
|
||||
use trans::_match;
|
||||
use trans::adt;
|
||||
|
|
|
@ -48,7 +48,7 @@ use trans::meth;
|
|||
use trans::monomorphize;
|
||||
use trans::type_::Type;
|
||||
use trans::type_of;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::ty::MethodCall;
|
||||
use util::ppaux::Repr;
|
||||
use util::ppaux::ty_to_string;
|
||||
|
|
|
@ -27,7 +27,7 @@ use trans::glue;
|
|||
// Temporary due to slicing syntax hacks (KILLME)
|
||||
//use middle::region;
|
||||
use trans::type_::Type;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use std::fmt;
|
||||
use syntax::ast;
|
||||
use util::ppaux::Repr;
|
||||
|
|
|
@ -22,10 +22,10 @@ use trans::common::*;
|
|||
use trans::datum::{Datum, DatumBlock, Expr, Lvalue, rvalue_scratch_datum};
|
||||
use trans::debuginfo;
|
||||
use trans::expr;
|
||||
use trans::monomorphize::{mod, MonoId};
|
||||
use trans::monomorphize::{self, MonoId};
|
||||
use trans::type_of::*;
|
||||
use trans::type_::Type;
|
||||
use middle::ty::{mod, Ty, UnboxedClosureTyper};
|
||||
use middle::ty::{self, Ty, UnboxedClosureTyper};
|
||||
use middle::subst::{Substs};
|
||||
use session::config::FullDebugInfo;
|
||||
use util::ppaux::Repr;
|
||||
|
|
|
@ -24,7 +24,7 @@ use middle::infer;
|
|||
use middle::lang_items::LangItem;
|
||||
use middle::mem_categorization as mc;
|
||||
use middle::region;
|
||||
use middle::subst::{mod, Subst, Substs};
|
||||
use middle::subst::{self, Subst, Substs};
|
||||
use trans::base;
|
||||
use trans::build;
|
||||
use trans::cleanup;
|
||||
|
@ -35,7 +35,7 @@ use trans::monomorphize;
|
|||
use trans::type_::Type;
|
||||
use trans::type_of;
|
||||
use middle::traits;
|
||||
use middle::ty::{mod, HasProjectionTypes, Ty};
|
||||
use middle::ty::{self, HasProjectionTypes, Ty};
|
||||
use middle::ty_fold;
|
||||
use middle::ty_fold::{TypeFolder, TypeFoldable};
|
||||
use util::ppaux::Repr;
|
||||
|
|
|
@ -17,11 +17,11 @@ use llvm::{IntEQ, IntNE, IntUGT, IntUGE, IntULT, IntULE, IntSGT, IntSGE, IntSLT,
|
|||
use metadata::csearch;
|
||||
use middle::{const_eval, def};
|
||||
use trans::{adt, closure, consts, debuginfo, expr, inline, machine};
|
||||
use trans::base::{mod, push_ctxt};
|
||||
use trans::base::{self, push_ctxt};
|
||||
use trans::common::*;
|
||||
use trans::type_::Type;
|
||||
use trans::type_of;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use util::ppaux::{Repr, ty_to_string};
|
||||
|
||||
use std::c_str::ToCStr;
|
||||
|
|
|
@ -22,7 +22,7 @@ use trans::common::{ExternMap,tydesc_info,BuilderRef_res};
|
|||
use trans::debuginfo;
|
||||
use trans::monomorphize::MonoId;
|
||||
use trans::type_::{Type, TypeNames};
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use session::config::NoDebugInfo;
|
||||
use session::Session;
|
||||
use util::ppaux::Repr;
|
||||
|
|
|
@ -23,7 +23,7 @@ use trans::cleanup::CleanupMethods;
|
|||
use trans::expr;
|
||||
use trans::tvec;
|
||||
use trans::type_of;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use util::ppaux::{ty_to_string};
|
||||
|
||||
use std::fmt;
|
||||
|
|
|
@ -194,15 +194,15 @@ use llvm;
|
|||
use llvm::{ModuleRef, ContextRef, ValueRef};
|
||||
use llvm::debuginfo::*;
|
||||
use metadata::csearch;
|
||||
use middle::subst::{mod, Substs};
|
||||
use trans::{mod, adt, machine, type_of};
|
||||
use middle::subst::{self, Substs};
|
||||
use trans::{self, adt, machine, type_of};
|
||||
use trans::common::*;
|
||||
use trans::_match::{BindingInfo, TrByCopy, TrByMove, TrByRef};
|
||||
use trans::monomorphize;
|
||||
use trans::type_::Type;
|
||||
use middle::ty::{mod, Ty, UnboxedClosureTyper};
|
||||
use middle::ty::{self, Ty, UnboxedClosureTyper};
|
||||
use middle::pat_util;
|
||||
use session::config::{mod, FullDebugInfo, LimitedDebugInfo, NoDebugInfo};
|
||||
use session::config::{self, FullDebugInfo, LimitedDebugInfo, NoDebugInfo};
|
||||
use util::nodemap::{DefIdMap, NodeMap, FnvHashMap, FnvHashSet};
|
||||
use util::ppaux;
|
||||
|
||||
|
@ -215,7 +215,7 @@ use syntax::util::interner::Interner;
|
|||
use syntax::codemap::{Span, Pos};
|
||||
use syntax::{ast, codemap, ast_util, ast_map, attr};
|
||||
use syntax::ast_util::PostExpansionMethod;
|
||||
use syntax::parse::token::{mod, special_idents};
|
||||
use syntax::parse::token::{self, special_idents};
|
||||
|
||||
const DW_LANG_RUST: c_uint = 0x9000;
|
||||
|
||||
|
|
|
@ -36,14 +36,14 @@ pub use self::Dest::*;
|
|||
use self::lazy_binop_ty::*;
|
||||
|
||||
use back::abi;
|
||||
use llvm::{mod, ValueRef};
|
||||
use llvm::{self, ValueRef};
|
||||
use middle::def;
|
||||
use middle::mem_categorization::Typer;
|
||||
use middle::subst::{mod, Substs};
|
||||
use middle::subst::{self, Substs};
|
||||
use trans::{_match, adt, asm, base, callee, closure, consts, controlflow};
|
||||
use trans::base::*;
|
||||
use trans::build::*;
|
||||
use trans::cleanup::{mod, CleanupMethods};
|
||||
use trans::cleanup::{self, CleanupMethods};
|
||||
use trans::common::*;
|
||||
use trans::datum::*;
|
||||
use trans::debuginfo;
|
||||
|
@ -56,7 +56,7 @@ use trans::type_of;
|
|||
use middle::ty::{struct_fields, tup_fields};
|
||||
use middle::ty::{AdjustDerefRef, AdjustReifyFnPointer, AdjustAddEnv, AutoUnsafe};
|
||||
use middle::ty::{AutoPtr};
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::ty::MethodCall;
|
||||
use util::common::indenter;
|
||||
use util::ppaux::Repr;
|
||||
|
|
|
@ -23,7 +23,7 @@ use trans::monomorphize;
|
|||
use trans::type_::Type;
|
||||
use trans::type_of::*;
|
||||
use trans::type_of;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::subst::{Substs};
|
||||
use std::cmp;
|
||||
use std::c_str::ToCStr;
|
||||
|
|
|
@ -34,7 +34,7 @@ use trans::machine::*;
|
|||
use trans::tvec;
|
||||
use trans::type_::Type;
|
||||
use trans::type_of::{type_of, sizing_type_of, align_of};
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use util::ppaux::{ty_to_short_str, Repr};
|
||||
use util::ppaux;
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ use trans::type_of;
|
|||
use trans::machine;
|
||||
use trans::machine::llsize_of;
|
||||
use trans::type_::Type;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use syntax::abi::RustIntrinsic;
|
||||
use syntax::ast;
|
||||
use syntax::parse::token;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
use arena::TypedArena;
|
||||
use back::abi;
|
||||
use back::link;
|
||||
use llvm::{mod, ValueRef, get_param};
|
||||
use llvm::{self, ValueRef, get_param};
|
||||
use metadata::csearch;
|
||||
use middle::subst::{Subst, Substs};
|
||||
use middle::subst::VecPerParamSpace;
|
||||
|
@ -30,7 +30,7 @@ use trans::glue;
|
|||
use trans::machine;
|
||||
use trans::type_::Type;
|
||||
use trans::type_of::*;
|
||||
use middle::ty::{mod, Ty};
|
||||
use middle::ty::{self, Ty};
|
||||
use middle::ty::MethodCall;
|
||||
use util::ppaux::Repr;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ use trans::base::{trans_fn, decl_internal_rust_fn};
|
|||
use trans::base;
|
||||
use trans::common::*;
|
||||
use trans::foreign;
|
||||
use middle::ty::{mod, HasProjectionTypes, Ty};
|
||||
use middle::ty::{self, HasProjectionTypes, Ty};
|
||||
use util::ppaux::Repr;
|
||||
|
||||
use syntax::abi;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue