Move CachingCodemapView to rustc::ich.
This commit is contained in:
parent
1445ed272e
commit
9af97e7ff2
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use rustc::ty::TyCtxt;
|
||||
use ty::TyCtxt;
|
||||
use std::rc::Rc;
|
||||
use syntax::codemap::CodeMap;
|
||||
use syntax_pos::{BytePos, FileMap};
|
@ -10,6 +10,8 @@
|
||||
|
||||
pub use self::fingerprint::Fingerprint;
|
||||
pub use self::def_path_hash::DefPathHashes;
|
||||
pub use self::caching_codemap_view::CachingCodemapView;
|
||||
|
||||
mod fingerprint;
|
||||
mod def_path_hash;
|
||||
mod caching_codemap_view;
|
||||
|
@ -35,7 +35,7 @@ use rustc::hir;
|
||||
use rustc::hir::def_id::{CRATE_DEF_INDEX, DefId};
|
||||
use rustc::hir::intravisit as visit;
|
||||
use rustc::hir::intravisit::{Visitor, NestedVisitorMap};
|
||||
use rustc::ich::{Fingerprint, DefPathHashes};
|
||||
use rustc::ich::{Fingerprint, DefPathHashes, CachingCodemapView};
|
||||
use rustc::ty::TyCtxt;
|
||||
use rustc_data_structures::stable_hasher::StableHasher;
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
@ -43,10 +43,8 @@ use rustc::util::common::record_time;
|
||||
use rustc::session::config::DebugInfoLevel::NoDebugInfo;
|
||||
|
||||
use self::svh_visitor::StrictVersionHashVisitor;
|
||||
use self::caching_codemap_view::CachingCodemapView;
|
||||
|
||||
mod svh_visitor;
|
||||
mod caching_codemap_view;
|
||||
|
||||
pub type IchHasher = StableHasher<Fingerprint>;
|
||||
|
||||
|
@ -26,11 +26,10 @@ use rustc::hir::*;
|
||||
use rustc::hir::def::Def;
|
||||
use rustc::hir::def_id::DefId;
|
||||
use rustc::hir::intravisit::{self as visit, Visitor};
|
||||
use rustc::ich::DefPathHashes;
|
||||
use rustc::ich::{DefPathHashes, CachingCodemapView};
|
||||
use rustc::ty::TyCtxt;
|
||||
use std::hash::{Hash, Hasher};
|
||||
|
||||
use super::caching_codemap_view::CachingCodemapView;
|
||||
use super::IchHasher;
|
||||
|
||||
const IGNORED_ATTRIBUTES: &'static [&'static str] = &[
|
||||
|
Loading…
Reference in New Issue
Block a user