Move DefPathHashes to rustc::ich
This commit is contained in:
parent
8c00e63f3f
commit
1445ed272e
|
@ -8,9 +8,9 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use rustc::hir::def_id::DefId;
|
use hir::def_id::DefId;
|
||||||
use rustc::ty::TyCtxt;
|
use ty::TyCtxt;
|
||||||
use rustc::util::nodemap::DefIdMap;
|
use util::nodemap::DefIdMap;
|
||||||
|
|
||||||
pub struct DefPathHashes<'a, 'tcx: 'a> {
|
pub struct DefPathHashes<'a, 'tcx: 'a> {
|
||||||
tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
|
@ -9,6 +9,7 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
pub use self::fingerprint::Fingerprint;
|
pub use self::fingerprint::Fingerprint;
|
||||||
|
pub use self::def_path_hash::DefPathHashes;
|
||||||
|
|
||||||
mod fingerprint;
|
mod fingerprint;
|
||||||
|
mod def_path_hash;
|
||||||
|
|
|
@ -35,18 +35,16 @@ use rustc::hir;
|
||||||
use rustc::hir::def_id::{CRATE_DEF_INDEX, DefId};
|
use rustc::hir::def_id::{CRATE_DEF_INDEX, DefId};
|
||||||
use rustc::hir::intravisit as visit;
|
use rustc::hir::intravisit as visit;
|
||||||
use rustc::hir::intravisit::{Visitor, NestedVisitorMap};
|
use rustc::hir::intravisit::{Visitor, NestedVisitorMap};
|
||||||
use rustc::ich::Fingerprint;
|
use rustc::ich::{Fingerprint, DefPathHashes};
|
||||||
use rustc::ty::TyCtxt;
|
use rustc::ty::TyCtxt;
|
||||||
use rustc_data_structures::stable_hasher::StableHasher;
|
use rustc_data_structures::stable_hasher::StableHasher;
|
||||||
use rustc_data_structures::fx::FxHashMap;
|
use rustc_data_structures::fx::FxHashMap;
|
||||||
use rustc::util::common::record_time;
|
use rustc::util::common::record_time;
|
||||||
use rustc::session::config::DebugInfoLevel::NoDebugInfo;
|
use rustc::session::config::DebugInfoLevel::NoDebugInfo;
|
||||||
|
|
||||||
use self::def_path_hash::DefPathHashes;
|
|
||||||
use self::svh_visitor::StrictVersionHashVisitor;
|
use self::svh_visitor::StrictVersionHashVisitor;
|
||||||
use self::caching_codemap_view::CachingCodemapView;
|
use self::caching_codemap_view::CachingCodemapView;
|
||||||
|
|
||||||
mod def_path_hash;
|
|
||||||
mod svh_visitor;
|
mod svh_visitor;
|
||||||
mod caching_codemap_view;
|
mod caching_codemap_view;
|
||||||
|
|
||||||
|
|
|
@ -26,10 +26,10 @@ use rustc::hir::*;
|
||||||
use rustc::hir::def::Def;
|
use rustc::hir::def::Def;
|
||||||
use rustc::hir::def_id::DefId;
|
use rustc::hir::def_id::DefId;
|
||||||
use rustc::hir::intravisit::{self as visit, Visitor};
|
use rustc::hir::intravisit::{self as visit, Visitor};
|
||||||
|
use rustc::ich::DefPathHashes;
|
||||||
use rustc::ty::TyCtxt;
|
use rustc::ty::TyCtxt;
|
||||||
use std::hash::{Hash, Hasher};
|
use std::hash::{Hash, Hasher};
|
||||||
|
|
||||||
use super::def_path_hash::DefPathHashes;
|
|
||||||
use super::caching_codemap_view::CachingCodemapView;
|
use super::caching_codemap_view::CachingCodemapView;
|
||||||
use super::IchHasher;
|
use super::IchHasher;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue