mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
rustc: move middle::{def,def_id,pat_util} to hir.
This commit is contained in:
parent
7bebe80bc2
commit
ffca6c3e15
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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::*;
|
||||
|
@ -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>;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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::*;
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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::*;
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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::*;
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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::*;
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user