Skip to content

Commit 9af97e7

Browse files
Move CachingCodemapView to rustc::ich.
1 parent 1445ed2 commit 9af97e7

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/librustc_incremental/calculate_svh/caching_codemap_view.rs renamed to src/librustc/ich/caching_codemap_view.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use rustc::ty::TyCtxt;
11+
use ty::TyCtxt;
1212
use std::rc::Rc;
1313
use syntax::codemap::CodeMap;
1414
use syntax_pos::{BytePos, FileMap};

src/librustc/ich/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
pub use self::fingerprint::Fingerprint;
1212
pub use self::def_path_hash::DefPathHashes;
13+
pub use self::caching_codemap_view::CachingCodemapView;
1314

1415
mod fingerprint;
1516
mod def_path_hash;
17+
mod caching_codemap_view;

src/librustc_incremental/calculate_svh/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,16 @@ use rustc::hir;
3535
use rustc::hir::def_id::{CRATE_DEF_INDEX, DefId};
3636
use rustc::hir::intravisit as visit;
3737
use rustc::hir::intravisit::{Visitor, NestedVisitorMap};
38-
use rustc::ich::{Fingerprint, DefPathHashes};
38+
use rustc::ich::{Fingerprint, DefPathHashes, CachingCodemapView};
3939
use rustc::ty::TyCtxt;
4040
use rustc_data_structures::stable_hasher::StableHasher;
4141
use rustc_data_structures::fx::FxHashMap;
4242
use rustc::util::common::record_time;
4343
use rustc::session::config::DebugInfoLevel::NoDebugInfo;
4444

4545
use self::svh_visitor::StrictVersionHashVisitor;
46-
use self::caching_codemap_view::CachingCodemapView;
4746

4847
mod svh_visitor;
49-
mod caching_codemap_view;
5048

5149
pub type IchHasher = StableHasher<Fingerprint>;
5250

src/librustc_incremental/calculate_svh/svh_visitor.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@ use rustc::hir::*;
2626
use rustc::hir::def::Def;
2727
use rustc::hir::def_id::DefId;
2828
use rustc::hir::intravisit::{self as visit, Visitor};
29-
use rustc::ich::DefPathHashes;
29+
use rustc::ich::{DefPathHashes, CachingCodemapView};
3030
use rustc::ty::TyCtxt;
3131
use std::hash::{Hash, Hasher};
3232

33-
use super::caching_codemap_view::CachingCodemapView;
3433
use super::IchHasher;
3534

3635
const IGNORED_ATTRIBUTES: &'static [&'static str] = &[

0 commit comments

Comments
 (0)