rustc: move middle::{def,def_id,pat_util} to hir.

This commit is contained in:
Eduard Burtescu 2016-03-29 12:54:26 +03:00
parent 7bebe80bc2
commit ffca6c3e15
133 changed files with 190 additions and 190 deletions

View File

@ -10,8 +10,8 @@
use rustc_data_structures::graph;
use cfg::*;
use middle::def::Def;
use middle::pat_util;
use hir::def::Def;
use hir::pat_util;
use ty::{self, TyCtxt};
use syntax::ast;
use syntax::ptr::P;

View File

@ -9,7 +9,7 @@
// except according to those terms.
use self::thread::{DepGraphThreadData, DepMessage};
use middle::def_id::DefId;
use hir::def_id::DefId;
use syntax::ast::NodeId;
use ty::TyCtxt;
use hir;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use middle::def_id::DefId;
use hir::def_id::DefId;
use ty::subst::ParamSpace;
use util::nodemap::NodeMap;
use syntax::ast;

View File

@ -13,7 +13,7 @@ use super::MapEntry::*;
use hir::*;
use hir::intravisit::Visitor;
use middle::def_id::{CRATE_DEF_INDEX, DefId, DefIndex};
use hir::def_id::{CRATE_DEF_INDEX, DefId, DefIndex};
use std::iter::repeat;
use syntax::ast::{NodeId, CRATE_NODE_ID, DUMMY_NODE_ID};
use syntax::codemap::Span;

View File

@ -9,7 +9,7 @@
// except according to those terms.
use middle::cstore::LOCAL_CRATE;
use middle::def_id::{DefId, DefIndex};
use hir::def_id::{DefId, DefIndex};
use rustc_data_structures::fnv::FnvHashMap;
use syntax::ast;
use syntax::parse::token::InternedString;

View File

@ -19,7 +19,7 @@ use dep_graph::{DepGraph, DepNode};
use middle::cstore::InlinedItem;
use middle::cstore::InlinedItem as II;
use middle::def_id::{CRATE_DEF_INDEX, DefId};
use hir::def_id::{CRATE_DEF_INDEX, DefId};
use syntax::abi::Abi;
use syntax::ast::{self, Name, NodeId, DUMMY_NODE_ID};

View File

@ -63,10 +63,13 @@ macro_rules! hir_vec {
}
pub mod check_attr;
pub mod def;
pub mod def_id;
pub mod fold;
pub mod intravisit;
pub mod lowering;
pub mod map;
pub mod pat_util;
pub mod print;
pub mod svh;

View File

@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use middle::def::*;
use middle::def_id::DefId;
use hir::def::*;
use hir::def_id::DefId;
use ty::TyCtxt;
use util::nodemap::FnvHashMap;

View File

@ -78,8 +78,8 @@ use hir;
use hir::print as pprust;
use middle::cstore::CrateStore;
use middle::def::Def;
use middle::def_id::DefId;
use hir::def::Def;
use hir::def_id::DefId;
use infer::{self, TypeOrigin};
use middle::region;
use ty::subst;

View File

@ -18,7 +18,7 @@ pub use ty::IntVarValue;
pub use self::freshen::TypeFreshener;
pub use self::region_inference::{GenericKind, VerifyBound};
use middle::def_id::DefId;
use hir::def_id::DefId;
use hir;
use middle::free_region::FreeRegionMap;
use middle::mem_categorization as mc;

View File

@ -11,7 +11,7 @@
pub use self::RelationDir::*;
use self::TypeVariableValue::*;
use self::UndoEntry::*;
use middle::def_id::{DefId};
use hir::def_id::{DefId};
use ty::{self, Ty};
use syntax::codemap::Span;

View File

@ -86,8 +86,6 @@ pub mod middle {
pub mod cstore;
pub mod dataflow;
pub mod dead;
pub mod def;
pub mod def_id;
pub mod dependency_format;
pub mod effect;
pub mod entry;
@ -96,7 +94,6 @@ pub mod middle {
pub mod lang_items;
pub mod liveness;
pub mod mem_categorization;
pub mod pat_util;
pub mod privacy;
pub mod reachable;
pub mod region;

View File

@ -14,7 +14,7 @@
* Almost certainly this could (and should) be refactored out of existence.
*/
use middle::def::Def;
use hir::def::Def;
use ty::{Ty, TyCtxt};
use syntax::codemap::Span;

View File

@ -11,7 +11,7 @@
use syntax::parse::token::InternedString;
use syntax::ast;
use std::rc::Rc;
use middle::def_id::DefId;
use hir::def_id::DefId;
use std::hash;
use std::mem::transmute;
use rustc_const_math::*;

View File

@ -24,10 +24,10 @@
use hir::svh::Svh;
use hir::map as hir_map;
use middle::def::{self, Def};
use hir::def::{self, Def};
use middle::lang_items;
use ty::{self, Ty, TyCtxt, VariantKind};
use middle::def_id::{DefId, DefIndex};
use hir::def_id::{DefId, DefIndex};
use mir::repr::Mir;
use mir::mir_map::MirMap;
use session::Session;
@ -504,7 +504,7 @@ pub mod tls {
use std::mem;
use ty::{self, Ty, TyCtxt};
use ty::subst::Substs;
use middle::def_id::DefId;
use hir::def_id::DefId;
pub trait EncodingContext<'tcx> {
fn tcx<'a>(&'a self) -> &'a TyCtxt<'tcx>;

View File

@ -14,13 +14,13 @@
use dep_graph::DepNode;
use hir::map as ast_map;
use hir::{self, PatKind};
use hir::{self, pat_util, PatKind};
use hir::intravisit::{self, Visitor};
use middle::{pat_util, privacy};
use middle::privacy;
use ty::{self, TyCtxt};
use middle::def::Def;
use middle::def_id::{DefId};
use hir::def::Def;
use hir::def_id::{DefId};
use lint;
use std::collections::HashSet;

View File

@ -13,7 +13,7 @@
use self::RootUnsafeContext::*;
use dep_graph::DepNode;
use middle::def::Def;
use hir::def::Def;
use ty::{self, Ty, TyCtxt};
use ty::MethodCall;

View File

@ -11,7 +11,7 @@
use dep_graph::DepNode;
use hir::map as ast_map;
use middle::def_id::{CRATE_DEF_INDEX};
use hir::def_id::{CRATE_DEF_INDEX};
use session::{config, Session};
use syntax::ast::NodeId;
use syntax::attr;

View File

@ -19,9 +19,9 @@ pub use self::MatchMode::*;
use self::TrackMatchMode::*;
use self::OverloadedCallType::*;
use middle::pat_util;
use middle::def::Def;
use middle::def_id::{DefId};
use hir::pat_util;
use hir::def::Def;
use hir::def_id::{DefId};
use infer;
use middle::mem_categorization as mc;
use ty::{self, TyCtxt, adjustment};

View File

@ -9,8 +9,8 @@
// except according to those terms.
use dep_graph::DepNode;
use middle::def::Def;
use middle::def_id::DefId;
use hir::def::Def;
use hir::def_id::DefId;
use ty::subst::{Subst, Substs, EnumeratedItems};
use ty::{TransmuteRestriction, TyCtxt};
use ty::{self, Ty, TypeFoldable};

View File

@ -25,7 +25,7 @@ use dep_graph::DepNode;
use hir::map as hir_map;
use session::Session;
use middle::cstore::CrateStore;
use middle::def_id::DefId;
use hir::def_id::DefId;
use ty;
use middle::weak_lang_items;
use util::nodemap::FnvHashMap;

View File

@ -110,8 +110,8 @@ use self::LiveNodeKind::*;
use self::VarKind::*;
use dep_graph::DepNode;
use middle::def::*;
use middle::pat_util;
use hir::def::*;
use hir::pat_util;
use ty::{self, TyCtxt, ParameterEnvironment};
use traits::{self, ProjectionMode};
use infer;

View File

@ -71,11 +71,11 @@ pub use self::deref_kind::*;
use self::Aliasability::*;
use middle::def_id::DefId;
use hir::def_id::DefId;
use hir::map as ast_map;
use infer;
use middle::const_qualif::ConstQualif;
use middle::def::Def;
use hir::def::Def;
use ty::adjustment;
use ty::{self, Ty, TyCtxt};

View File

@ -17,8 +17,8 @@
use dep_graph::DepNode;
use hir::map as ast_map;
use middle::def::Def;
use middle::def_id::DefId;
use hir::def::Def;
use hir::def_id::DefId;
use ty::{self, TyCtxt};
use middle::privacy;
use session::config;

View File

@ -21,7 +21,7 @@ use self::ScopeChain::*;
use dep_graph::DepNode;
use hir::map::Map;
use session::Session;
use middle::def::{Def, DefMap};
use hir::def::{Def, DefMap};
use middle::region;
use ty::subst;
use ty;

View File

@ -18,8 +18,8 @@ use hir::map as hir_map;
use session::Session;
use lint;
use middle::cstore::{CrateStore, LOCAL_CRATE};
use middle::def::Def;
use middle::def_id::{CRATE_DEF_INDEX, DefId};
use hir::def::Def;
use hir::def_id::{CRATE_DEF_INDEX, DefId};
use ty::{self, TyCtxt};
use middle::privacy::AccessLevels;
use syntax::parse::token::InternedString;

View File

@ -11,7 +11,7 @@
use graphviz::IntoCow;
use middle::const_val::ConstVal;
use rustc_const_math::{ConstUsize, ConstInt};
use middle::def_id::DefId;
use hir::def_id::DefId;
use ty::subst::Substs;
use ty::{self, AdtDef, ClosureSubsts, FnOutput, Region, Ty};
use util::ppaux;

View File

@ -9,7 +9,7 @@
// except according to those terms.
use middle::const_val::ConstVal;
use middle::def_id::DefId;
use hir::def_id::DefId;
use ty::subst::Substs;
use ty::{ClosureSubsts, FnOutput, Region, Ty};
use mir::repr::*;

View File

@ -13,7 +13,7 @@
use super::{SelectionContext, Obligation, ObligationCause};
use middle::cstore::LOCAL_CRATE;
use middle::def_id::DefId;
use hir::def_id::DefId;
use ty::subst::TypeSpace;
use ty::{self, Ty, TyCtxt};
use infer::{self, InferCtxt, TypeOrigin};

View File

@ -24,7 +24,7 @@ use super::{
};
use fmt_macros::{Parser, Piece, Position};
use middle::def_id::DefId;
use hir::def_id::DefId;
use infer::InferCtxt;
use ty::{self, ToPredicate, ToPolyTraitRef, TraitRef, Ty, TyCtxt, TypeFoldable};
use ty::fast_reject;

View File

@ -15,7 +15,7 @@ pub use self::FulfillmentErrorCode::*;
pub use self::Vtable::*;
pub use self::ObligationCauseCode::*;
use middle::def_id::DefId;
use hir::def_id::DefId;
use middle::free_region::FreeRegionMap;
use ty::subst;
use ty::{self, Ty, TypeFoldable};

View File

@ -20,7 +20,7 @@
use super::supertraits;
use super::elaborate_predicates;
use middle::def_id::DefId;
use hir::def_id::DefId;
use ty::subst::{self, SelfSpace, TypeSpace};
use traits;
use ty::{self, ToPolyTraitRef, Ty, TyCtxt, TypeFoldable};

View File

@ -23,7 +23,7 @@ use super::VtableClosureData;
use super::VtableImplData;
use super::util;
use middle::def_id::DefId;
use hir::def_id::DefId;
use infer::{self, InferOk, TypeOrigin};
use ty::subst::Subst;
use ty::{self, ToPredicate, ToPolyTraitRef, Ty, TyCtxt};

View File

@ -36,7 +36,7 @@ use super::{VtableImplData, VtableObjectData, VtableBuiltinData,
use super::object_safety;
use super::util;
use middle::def_id::DefId;
use hir::def_id::DefId;
use infer;
use infer::{InferCtxt, InferOk, TypeFreshener, TypeOrigin};
use ty::subst::{Subst, Substs, TypeSpace};

View File

@ -21,7 +21,7 @@ use super::{SelectionContext, FulfillmentContext};
use super::util::{fresh_type_vars_for_impl, impl_trait_ref_and_oblig};
use middle::cstore::CrateStore;
use middle::def_id::DefId;
use hir::def_id::DefId;
use infer::{self, InferCtxt, TypeOrigin};
use middle::region;
use ty::subst::{Subst, Substs};

View File

@ -14,7 +14,7 @@ use std::rc::Rc;
use super::{Overlap, specializes};
use middle::cstore::CrateStore;
use middle::def_id::DefId;
use hir::def_id::DefId;
use infer;
use traits::{self, ProjectionMode};
use ty::{self, TyCtxt, ImplOrTraitItem, TraitDef, TypeFoldable};

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use middle::def_id::DefId;
use hir::def_id::DefId;
use infer::InferCtxt;
use ty::subst::{Subst, Substs};
use ty::{self, Ty, TyCtxt, ToPredicate, ToPolyTraitRef};

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use middle::def_id::{DefId};
use hir::def_id::{DefId};
use ty::{self, Ty, TyCtxt};
use util::common::MemoizationMap;
use util::nodemap::FnvHashMap;

View File

@ -16,8 +16,8 @@ use session::Session;
use lint;
use middle;
use middle::cstore::{CrateStore, LOCAL_CRATE};
use middle::def::DefMap;
use middle::def_id::DefId;
use hir::def::DefMap;
use hir::def_id::DefId;
use middle::free_region::FreeRegionMap;
use middle::region::RegionMaps;
use middle::resolve_lifetime;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use middle::def_id::DefId;
use hir::def_id::DefId;
use ty::subst;
use infer::type_variable;
use ty::{self, BoundRegion, Region, Ty, TyCtxt};

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use middle::def_id::DefId;
use hir::def_id::DefId;
use ty::{self, Ty, TyCtxt};
use syntax::ast;

View File

@ -10,7 +10,7 @@
use hir::map::DefPathData;
use middle::cstore::LOCAL_CRATE;
use middle::def_id::{DefId, CRATE_DEF_INDEX};
use hir::def_id::{DefId, CRATE_DEF_INDEX};
use ty::{self, Ty, TyCtxt};
use syntax::ast;

View File

@ -9,7 +9,7 @@
// except according to those terms.
use dep_graph::{DepNode, DepTrackingMapConfig};
use middle::def_id::DefId;
use hir::def_id::DefId;
use ty;
use std::marker::PhantomData;
use std::rc::Rc;

View File

@ -23,8 +23,8 @@ use hir::map as ast_map;
use hir::map::LinkedPath;
use middle;
use middle::cstore::{self, CrateStore, LOCAL_CRATE};
use middle::def::{self, Def, ExportMap};
use middle::def_id::DefId;
use hir::def::{self, Def, ExportMap};
use hir::def_id::DefId;
use middle::lang_items::{FnTraitLangItem, FnMutTraitLangItem, FnOnceTraitLangItem};
use middle::region::{CodeExtent};
use traits;

View File

@ -13,7 +13,7 @@
//! can be other things. Examples of type relations are subtyping,
//! type equality, etc.
use middle::def_id::DefId;
use hir::def_id::DefId;
use ty::subst::{ParamSpace, Substs};
use ty::{self, Ty, TyCtxt, TypeFoldable};
use ty::error::{ExpectedFound, TypeError};

View File

@ -11,7 +11,7 @@
//! This module contains TypeVariants and its major components
use middle::cstore;
use middle::def_id::DefId;
use hir::def_id::DefId;
use middle::region;
use ty::subst::{self, Substs};
use traits;

View File

@ -13,7 +13,7 @@
pub use self::ParamSpace::*;
use middle::cstore;
use middle::def_id::DefId;
use hir::def_id::DefId;
use ty::{self, Ty, TyCtxt};
use ty::fold::{TypeFoldable, TypeFolder};

View File

@ -9,7 +9,7 @@
// except according to those terms.
use dep_graph::DepNode;
use middle::def_id::DefId;
use hir::def_id::DefId;
use traits::{self, specialization_graph};
use ty;
use ty::fast_reject;

View File

@ -11,10 +11,10 @@
//! misc. type-system utilities too small to deserve their own file
use hir::svh::Svh;
use middle::def_id::DefId;
use hir::def_id::DefId;
use ty::subst;
use infer;
use middle::pat_util;
use hir::pat_util;
use traits::{self, ProjectionMode};
use ty::{self, Ty, TyCtxt, TypeAndMut, TypeFlags, TypeFoldable};
use ty::{Disr, ParameterEnvironment};

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use middle::def_id::DefId;
use hir::def_id::DefId;
use infer::InferCtxt;
use ty::outlives::{self, Component};
use ty::subst::Substs;

View File

@ -12,7 +12,7 @@
#![allow(non_snake_case)]
use middle::def_id::DefId;
use hir::def_id::DefId;
use syntax::ast;
pub use rustc_data_structures::fnv::FnvHashMap;

View File

@ -9,7 +9,7 @@
// except according to those terms.
use middle::def_id::DefId;
use hir::def_id::DefId;
use ty::subst::{self, Subst};
use ty::{BrAnon, BrEnv, BrFresh, BrNamed};
use ty::{TyBool, TyChar, TyStruct, TyEnum};

View File

@ -20,7 +20,7 @@ use borrowck::LoanPathKind::{LpVar, LpUpvar, LpDowncast, LpExtend};
use borrowck::LoanPathElem::{LpDeref, LpInterior};
use borrowck::move_data::InvalidMovePathIndex;
use borrowck::move_data::{MoveData, MovePathIndex};
use rustc::middle::def_id::{DefId};
use rustc::hir::def_id::{DefId};
use rustc::ty::{self, TyCtxt};
use rustc::middle::mem_categorization as mc;

View File

@ -28,7 +28,7 @@ use rustc::middle::dataflow::DataFlowContext;
use rustc::middle::dataflow::BitwiseOperator;
use rustc::middle::dataflow::DataFlowOperator;
use rustc::middle::dataflow::KillFrom;
use rustc::middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use rustc::middle::expr_use_visitor as euv;
use rustc::middle::free_region::FreeRegionMap;
use rustc::middle::mem_categorization as mc;

View File

@ -17,14 +17,14 @@ use rustc::middle::const_val::ConstVal;
use ::{eval_const_expr, eval_const_expr_partial, compare_const_vals};
use ::{const_expr_to_pat, lookup_const_by_id};
use ::EvalHint::ExprTypeChecked;
use rustc::middle::def::*;
use rustc::middle::def_id::{DefId};
use rustc::hir::def::*;
use rustc::hir::def_id::{DefId};
use rustc::middle::expr_use_visitor::{ConsumeMode, Delegate, ExprUseVisitor};
use rustc::middle::expr_use_visitor::{LoanCause, MutateMode};
use rustc::middle::expr_use_visitor as euv;
use rustc::infer;
use rustc::middle::mem_categorization::{cmt};
use rustc::middle::pat_util::*;
use rustc::hir::pat_util::*;
use rustc::traits::ProjectionMode;
use rustc::ty::*;
use rustc::ty;

View File

@ -19,9 +19,9 @@ use rustc::hir::map as ast_map;
use rustc::hir::map::blocks::FnLikeNode;
use rustc::middle::cstore::{self, CrateStore, InlinedItem};
use rustc::{infer, traits};
use rustc::middle::def::Def;
use rustc::middle::def_id::DefId;
use rustc::middle::pat_util::def_to_path;
use rustc::hir::def::Def;
use rustc::hir::def_id::DefId;
use rustc::hir::pat_util::def_to_path;
use rustc::ty::{self, Ty, TyCtxt, subst};
use rustc::ty::util::IntTypeExt;
use rustc::traits::ProjectionMode;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use middle::def::Def;
use rustc::hir::def::Def;
use rustc::ty;
use lint::{LateContext, LintContext, LintArray};
use lint::{LintPass, LateLintPass};

View File

@ -28,9 +28,9 @@
//! Use the former for unit-like structs and the latter for structs with
//! a `pub fn new()`.
use middle::def::Def;
use rustc::hir::def::Def;
use middle::cstore::CrateStore;
use middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use middle::stability;
use rustc::{cfg, infer};
use rustc::ty::subst::Substs;

View File

@ -10,7 +10,7 @@
#![allow(non_snake_case)]
use middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use rustc::infer;
use rustc::ty::subst::Substs;
use rustc::ty::{self, Ty, TyCtxt};

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use middle::pat_util;
use rustc::hir::pat_util;
use rustc::ty;
use rustc::ty::adjustment;
use util::nodemap::FnvHashMap;

View File

@ -31,8 +31,8 @@ use middle::cstore::{InlinedItem, InlinedItemRef};
use rustc::ty::adjustment;
use rustc::ty::cast;
use middle::const_qualif::ConstQualif;
use middle::def::{self, Def};
use middle::def_id::DefId;
use rustc::hir::def::{self, Def};
use rustc::hir::def_id::DefId;
use middle::region;
use rustc::ty::subst;
use rustc::ty::{self, Ty, TyCtxt};

View File

@ -15,10 +15,10 @@ use loader;
use middle::cstore::{CrateStore, CrateSource, ChildItem, ExternCrate, FoundAst, DefLike};
use middle::cstore::{NativeLibraryKind, LinkMeta, LinkagePreference};
use middle::def;
use rustc::hir::def;
use middle::lang_items;
use rustc::ty::{self, Ty, TyCtxt, VariantKind};
use middle::def_id::{DefId, DefIndex, CRATE_DEF_INDEX};
use rustc::hir::def_id::{DefId, DefIndex, CRATE_DEF_INDEX};
use rustc::hir::map as hir_map;
use rustc::mir::repr::Mir;

View File

@ -20,10 +20,10 @@ use decoder;
use index;
use loader;
use rustc::hir::def_id::DefId;
use rustc::hir::svh::Svh;
use rustc::middle::cstore::{ExternCrate};
use rustc::util::nodemap::{FnvHashMap, NodeMap, NodeSet, DefIdMap};
use rustc::middle::def_id::DefId;
use std::cell::{RefCell, Ref, Cell};
use std::rc::Rc;

View File

@ -29,8 +29,8 @@ use rustc::hir;
use middle::cstore::{LOCAL_CRATE, FoundAst, InlinedItem, LinkagePreference};
use middle::cstore::{DefLike, DlDef, DlField, DlImpl, tls};
use middle::def::Def;
use middle::def_id::{DefId, DefIndex};
use rustc::hir::def::Def;
use rustc::hir::def_id::{DefId, DefIndex};
use middle::lang_items;
use rustc::ty::subst;
use rustc::ty::{ImplContainer, TraitContainer};

View File

@ -21,8 +21,8 @@ use tyencode;
use index::{self, IndexData};
use middle::cstore::{LOCAL_CRATE, CrateStore, InlinedItemRef, LinkMeta, tls};
use middle::def;
use middle::def_id::{CRATE_DEF_INDEX, DefId};
use rustc::hir::def;
use rustc::hir::def_id::{CRATE_DEF_INDEX, DefId};
use middle::dependency_format::Linkage;
use middle::stability;
use rustc::ty::subst;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use middle::def_id::{DefId, DefIndex};
use rustc::hir::def_id::{DefId, DefIndex};
use rbml;
use std::io::{Cursor, Write};
use std::slice;

View File

@ -14,7 +14,7 @@
use rbml::opaque::Encoder as OpaqueEncoder;
use rbml::opaque::Decoder as OpaqueDecoder;
use rustc::middle::cstore::tls;
use rustc::middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use rustc::ty::subst::Substs;
use rustc::ty::{self, TyCtxt};

View File

@ -18,7 +18,7 @@
use rustc::hir;
use middle::def_id::{DefId, DefIndex};
use rustc::hir::def_id::{DefId, DefIndex};
use middle::region;
use rustc::ty::subst;
use rustc::ty::subst::VecPerParamSpace;

View File

@ -17,7 +17,7 @@ use std::cell::RefCell;
use std::io::Cursor;
use std::io::prelude::*;
use middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use middle::region;
use rustc::ty::subst;
use rustc::ty::subst::VecPerParamSpace;

View File

@ -15,11 +15,11 @@ use hair::cx::Cx;
use hair::cx::block;
use hair::cx::to_ref::ToRef;
use rustc::hir::map;
use rustc::middle::def::Def;
use rustc::hir::def::Def;
use rustc::middle::const_val::ConstVal;
use rustc_const_eval as const_eval;
use rustc::middle::region::CodeExtent;
use rustc::middle::pat_util;
use rustc::hir::pat_util;
use rustc::ty::{self, VariantDef, Ty};
use rustc::mir::repr::*;
use rustc::hir;

View File

@ -20,7 +20,7 @@ use rustc::mir::repr::*;
use rustc::middle::const_val::ConstVal;
use rustc_const_eval as const_eval;
use rustc::middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use rustc::infer::InferCtxt;
use rustc::ty::subst::{Subst, Substs};
use rustc::ty::{self, Ty, TyCtxt};

View File

@ -12,8 +12,8 @@ use hair::*;
use hair::cx::Cx;
use rustc_data_structures::fnv::FnvHashMap;
use rustc_const_eval as const_eval;
use rustc::middle::def::Def;
use rustc::middle::pat_util::{pat_is_resolved_const, pat_is_binding};
use rustc::hir::def::Def;
use rustc::hir::pat_util::{pat_is_resolved_const, pat_is_binding};
use rustc::ty::{self, Ty};
use rustc::mir::repr::*;
use rustc::hir::{self, PatKind};

View File

@ -17,7 +17,7 @@
use rustc::mir::repr::{BinOp, BorrowKind, Field, Literal, Mutability, UnOp,
TypedConstVal};
use rustc::middle::const_val::ConstVal;
use rustc::middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use rustc::middle::region::CodeExtent;
use rustc::ty::subst::Substs;
use rustc::ty::{self, AdtDef, ClosureSubsts, Region, Ty};

View File

@ -30,8 +30,8 @@ use rustc_const_eval::{ConstEvalErr, lookup_const_fn_by_id, compare_lit_exprs};
use rustc_const_eval::{eval_const_expr_partial, lookup_const_by_id};
use rustc_const_eval::ErrKind::{IndexOpFeatureGated, UnimplementedConstVal};
use rustc_const_eval::EvalHint::ExprTypeChecked;
use rustc::middle::def::Def;
use rustc::middle::def_id::DefId;
use rustc::hir::def::Def;
use rustc::hir::def_id::DefId;
use rustc::middle::expr_use_visitor as euv;
use rustc::infer;
use rustc::middle::mem_categorization as mc;

View File

@ -14,7 +14,7 @@
use rustc::dep_graph::DepNode;
use rustc::hir::map as ast_map;
use rustc::session::{Session, CompileResult};
use rustc::middle::def::{Def, DefMap};
use rustc::hir::def::{Def, DefMap};
use rustc::util::nodemap::NodeMap;
use syntax::{ast};

View File

@ -35,8 +35,8 @@ use rustc::hir::intravisit::{self, Visitor};
use rustc::dep_graph::DepNode;
use rustc::lint;
use rustc::middle::cstore::CrateStore;
use rustc::middle::def::{self, Def};
use rustc::middle::def_id::DefId;
use rustc::hir::def::{self, Def};
use rustc::hir::def_id::DefId;
use rustc::middle::privacy::{AccessLevel, AccessLevels};
use rustc::ty::{self, TyCtxt};
use rustc::util::nodemap::NodeSet;

View File

@ -24,8 +24,8 @@ use {resolve_error, resolve_struct_error, ResolutionError};
use rustc::middle::cstore::{CrateStore, ChildItem, DlDef};
use rustc::lint;
use rustc::middle::def::*;
use rustc::middle::def_id::{CRATE_DEF_INDEX, DefId};
use rustc::hir::def::*;
use rustc::hir::def_id::{CRATE_DEF_INDEX, DefId};
use rustc::ty::VariantKind;
use syntax::ast::Name;

View File

@ -52,9 +52,9 @@ use rustc::hir::map as hir_map;
use rustc::session::Session;
use rustc::lint;
use rustc::middle::cstore::CrateStore;
use rustc::middle::def::*;
use rustc::middle::def_id::DefId;
use rustc::middle::pat_util::pat_bindings;
use rustc::hir::def::*;
use rustc::hir::def_id::DefId;
use rustc::hir::pat_util::pat_bindings;
use rustc::ty::subst::{ParamSpace, FnSpace, TypeSpace};
use rustc::ty::{Freevar, FreevarMap, TraitMap, GlobMap};
use rustc::util::nodemap::{NodeMap, FnvHashMap};
@ -2570,7 +2570,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
}
/// Skips `path_depth` trailing segments, which is also reflected in the
/// returned value. See `middle::def::PathResolution` for more info.
/// returned value. See `hir::def::PathResolution` for more info.
fn resolve_path(&mut self, id: NodeId, path: &Path, path_depth: usize, namespace: Namespace)
-> Option<PathResolution> {
let span = path.span;

View File

@ -22,7 +22,7 @@ use {names_to_string, module_to_string};
use {resolve_error, ResolutionError};
use rustc::lint;
use rustc::middle::def::*;
use rustc::hir::def::*;
use syntax::ast::{NodeId, Name};
use syntax::attr::AttrMetaMethods;

View File

@ -10,7 +10,7 @@
use std::io::Write;
use rustc::middle::def_id::{DefId, DefIndex};
use rustc::hir::def_id::{DefId, DefIndex};
use syntax::codemap::Span;
use super::data::*;

View File

@ -15,7 +15,7 @@
use std::hash::Hasher;
use rustc::middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use rustc::ty;
use syntax::ast::{CrateNum, NodeId};
use syntax::codemap::Span;

View File

@ -27,8 +27,8 @@
//! is used for recording the output in a format-agnostic way (see CsvDumper
//! for an example).
use rustc::middle::def::Def;
use rustc::middle::def_id::DefId;
use rustc::hir::def::Def;
use rustc::hir::def_id::DefId;
use rustc::session::Session;
use rustc::ty::{self, TyCtxt};

View File

@ -29,8 +29,8 @@
use rustc::hir::{self, lowering};
use rustc::hir::map::NodeItem;
use rustc::middle::def::Def;
use rustc::middle::def_id::DefId;
use rustc::hir::def::Def;
use rustc::hir::def_id::DefId;
use rustc::session::config::CrateType::CrateTypeExecutable;
use rustc::ty::{self, TyCtxt};

View File

@ -191,14 +191,14 @@ use self::FailureHandler::*;
use llvm::{ValueRef, BasicBlockRef};
use rustc_const_eval::check_match::{self, StaticInliner};
use rustc_const_eval::{compare_lit_exprs, eval_const_expr};
use middle::def::{Def, DefMap};
use middle::def_id::DefId;
use rustc::hir::def::{Def, DefMap};
use rustc::hir::def_id::DefId;
use middle::expr_use_visitor as euv;
use rustc::infer;
use middle::lang_items::StrEqFnLangItem;
use middle::mem_categorization as mc;
use middle::mem_categorization::Categorization;
use middle::pat_util::*;
use rustc::hir::pat_util::*;
use rustc::ty::subst::Substs;
use adt;
use base::*;

View File

@ -39,7 +39,7 @@
use graphviz as dot;
use rustc::dep_graph::{DepGraphQuery, DepNode};
use rustc::middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use rustc::ty::TyCtxt;
use rustc_data_structures::fnv::{FnvHashMap, FnvHashSet};
use rustc_data_structures::graph::{Direction, INCOMING, OUTGOING, NodeIndex};

View File

@ -102,7 +102,7 @@ use monomorphize::Instance;
use util::sha2::{Digest, Sha256};
use rustc::middle::cstore;
use rustc::middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use rustc::ty::{self, TypeFoldable};
use rustc::ty::item_path::{ItemPathBuffer, RootMode};
use rustc::hir::map::definitions::{DefPath, DefPathData};

View File

@ -36,11 +36,11 @@ use llvm::{BasicBlockRef, Linkage, ValueRef, Vector, get_param};
use llvm;
use rustc::cfg;
use middle::cstore::CrateStore;
use middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use rustc::infer;
use middle::lang_items::{LangItem, ExchangeMallocFnLangItem, StartFnLangItem};
use middle::weak_lang_items;
use middle::pat_util::simple_name;
use rustc::hir::pat_util::simple_name;
use rustc::ty::subst::{self, Substs};
use rustc::traits;
use rustc::ty::{self, Ty, TyCtxt, TypeFoldable};

View File

@ -21,7 +21,7 @@ use arena::TypedArena;
use back::symbol_names;
use llvm::{self, ValueRef, get_params};
use middle::cstore::LOCAL_CRATE;
use middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use rustc::infer;
use rustc::ty::subst;
use rustc::ty::subst::{Substs};

View File

@ -11,7 +11,7 @@
use arena::TypedArena;
use back::symbol_names;
use llvm::{ValueRef, get_param, get_params};
use middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use rustc::infer;
use rustc::traits::ProjectionMode;
use abi::{Abi, FnType};

View File

@ -192,7 +192,7 @@ use rustc::hir;
use rustc::hir::intravisit as hir_visit;
use rustc::hir::map as hir_map;
use rustc::middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use rustc::middle::lang_items::{ExchangeFreeFnLangItem, ExchangeMallocFnLangItem};
use rustc::traits;
use rustc::ty::subst::{self, Substs, Subst};

View File

@ -17,8 +17,8 @@ use llvm;
use llvm::{ValueRef, BasicBlockRef, BuilderRef, ContextRef, TypeKind};
use llvm::{True, False, Bool, OperandBundleDef};
use rustc::cfg;
use middle::def::Def;
use middle::def_id::DefId;
use rustc::hir::def::Def;
use rustc::hir::def_id::DefId;
use rustc::infer;
use middle::lang_items::LangItem;
use rustc::ty::subst::Substs;

View File

@ -15,8 +15,8 @@ use llvm::{InternalLinkage, ValueRef, Bool, True};
use middle::const_qualif::ConstQualif;
use rustc_const_eval::{ConstEvalErr, lookup_const_fn_by_id, lookup_const_by_id, ErrKind};
use rustc_const_eval::eval_repeat_count;
use middle::def::Def;
use middle::def_id::DefId;
use rustc::hir::def::Def;
use rustc::hir::def_id::DefId;
use rustc::hir::map as hir_map;
use {abi, adt, closure, debuginfo, expr, machine};
use base::{self, exported_name, imported_name, push_ctxt};

View File

@ -12,8 +12,8 @@ use llvm;
use llvm::{ContextRef, ModuleRef, ValueRef, BuilderRef};
use rustc::dep_graph::{DepNode, DepTrackingMap, DepTrackingMapConfig};
use middle::cstore::LinkMeta;
use middle::def::ExportMap;
use middle::def_id::DefId;
use rustc::hir::def::ExportMap;
use rustc::hir::def_id::DefId;
use rustc::traits;
use rustc::mir::mir_map::MirMap;
use rustc::mir::repr as mir;

View File

@ -9,7 +9,7 @@
// except according to those terms.
use llvm::ValueRef;
use middle::def::Def;
use rustc::hir::def::Def;
use middle::lang_items::{PanicFnLangItem, PanicBoundsCheckFnLangItem};
use rustc::ty::subst::Substs;
use base::*;

View File

@ -14,7 +14,7 @@ use super::utils::DIB;
use llvm;
use llvm::debuginfo::{DIScope, DISubprogram};
use common::CrateContext;
use middle::pat_util;
use rustc::hir::pat_util;
use rustc::util::nodemap::NodeMap;
use libc::c_uint;

View File

@ -23,9 +23,9 @@ use super::{declare_local, VariableKind, VariableAccess};
use llvm::{self, ValueRef};
use llvm::debuginfo::{DIType, DIFile, DIScope, DIDescriptor, DICompositeType};
use middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use rustc::infer;
use middle::pat_util;
use rustc::hir::pat_util;
use rustc::ty::subst;
use rustc::hir::map as hir_map;
use rustc::hir::{self, PatKind};

View File

@ -26,7 +26,7 @@ use llvm;
use llvm::{ModuleRef, ContextRef, ValueRef};
use llvm::debuginfo::{DIFile, DIType, DIScope, DIBuilderRef, DISubprogram, DIArray,
DIDescriptor, FlagPrototyped};
use middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use rustc::infer::normalize_associated_type;
use rustc::ty::subst::{self, Substs};
use rustc::hir;

View File

@ -14,7 +14,7 @@ use super::utils::{DIB, debug_context};
use llvm;
use llvm::debuginfo::DIScope;
use rustc::middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use rustc::hir::map as hir_map;
use common::CrateContext;

View File

@ -13,7 +13,7 @@
use super::namespace::crate_root_namespace;
use common::CrateContext;
use middle::def_id::DefId;
use rustc::hir::def_id::DefId;
use rustc::infer;
use rustc::ty::subst;
use rustc::ty::{self, Ty};

Some files were not shown because too many files have changed in this diff Show More